	.file	"extr_safetysafety_hyundai.h_hyundai_fwd_hook.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hyundai_fwd_hook, @function
hyundai_fwd_hook:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR hyundai_giraffe_switch_2[rip], 0
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	je	.L4
	mov	eax, DWORD PTR hyundai_camera_bus[rip]
	test	edi, edi
	mov	r12d, -1
	cmove	r12d, eax
	cmp	edi, eax
	je	.L10
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rsi
	call	GET_ADDR@PLT
	cmp	eax, 832
	mov	eax, 0
	cmovne	r12d, eax
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hyundai_fwd_hook, .-hyundai_fwd_hook
	.comm	hyundai_giraffe_switch_2,8,8
	.comm	hyundai_camera_bus,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_safetysafety_hyundai.h_hyundai_fwd_hook.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hyundai_fwd_hook, %function
hyundai_fwd_hook:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L11
	push	{r4, lr}
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L4
	ldr	r2, .L11+4
	cmp	r0, #0
	ldr	r2, [r2]
	mvnne	r4, #0
	moveq	r4, r2
	cmp	r0, r2
	beq	.L10
.L1:
	mov	r0, r4
	pop	{r4, pc}
.L10:
	mov	r0, r1
	bl	GET_ADDR
	cmp	r0, #832
	movne	r4, #0
	mov	r0, r4
	pop	{r4, pc}
.L4:
	mvn	r4, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	hyundai_giraffe_switch_2
	.word	hyundai_camera_bus
	.size	hyundai_fwd_hook, .-hyundai_fwd_hook
	.comm	hyundai_giraffe_switch_2,4,4
	.comm	hyundai_camera_bus,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
