	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_i2c_new_ir
_ivtv_i2c_new_ir:                       ## @ivtv_i2c_new_ir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movw	%cx, -28(%rbp)
	movq	_I2C_CLIENT_END@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movw	%ax, -26(%rbp)
	movq	_IVTV_HW_IR_TX_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rdi), %ecx
	testl	%esi, %edx
	je	LBB0_3
## %bb.1:
	movl	$-1, %eax
	testl	%edx, %ecx
	jne	LBB0_13
## %bb.2:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	jmp	LBB0_12
LBB0_3:
	movq	_IVTV_HW_IR_RX_ANY@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_13
## %bb.4:
	leaq	16(%rbx), %r15
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_11
## %bb.5:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	_RC_MAP_RC5_TV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_IR_KBD_GET_KEY_HAUP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	_RC_MAP_HAUPPAUGE_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_IR_KBD_GET_KEY_HAUP_XVR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_RC_TYPE_RC5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_11
LBB0_6:
	movq	_RC_MAP_AVERMEDIA_CARDBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_IR_KBD_GET_KEY_AVERMEDIA_CARDBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_RC_TYPE_OTHER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	leaq	L_.str(%rip), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_11
LBB0_10:
	movq	_get_key_adaptec@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	_RC_MAP_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_RC_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_11:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r15, -40(%rbp)
LBB0_12:
	movl	-48(%rbp), %edi
	addq	$48, %rbx
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_strlcpy
	leaq	-48(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_i2c_new_probed_device
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$1, %rcx
	sbbl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_I2C_CLIENT_END,2,1             ## @I2C_CLIENT_END
	.comm	_IVTV_HW_IR_TX_ANY,4,2          ## @IVTV_HW_IR_TX_ANY
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.comm	_IVTV_HW_IR_RX_ANY,4,2          ## @IVTV_HW_IR_RX_ANY
	.comm	_RC_MAP_AVERMEDIA_CARDBUS,4,2   ## @RC_MAP_AVERMEDIA_CARDBUS
	.comm	_IR_KBD_GET_KEY_AVERMEDIA_CARDBUS,4,2 ## @IR_KBD_GET_KEY_AVERMEDIA_CARDBUS
	.comm	_RC_TYPE_OTHER,8,3              ## @RC_TYPE_OTHER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AVerMedia AVerTV card"

	.comm	_RC_MAP_RC5_TV,4,2              ## @RC_MAP_RC5_TV
	.comm	_IR_KBD_GET_KEY_HAUP,4,2        ## @IR_KBD_GET_KEY_HAUP
	.comm	_RC_TYPE_RC5,8,3                ## @RC_TYPE_RC5
	.comm	_RC_MAP_HAUPPAUGE_NEW,4,2       ## @RC_MAP_HAUPPAUGE_NEW
	.comm	_IR_KBD_GET_KEY_HAUP_XVR,4,2    ## @IR_KBD_GET_KEY_HAUP_XVR
	.comm	_get_key_adaptec,4,2            ## @get_key_adaptec
	.comm	_RC_MAP_EMPTY,4,2               ## @RC_MAP_EMPTY
	.comm	_RC_TYPE_UNKNOWN,8,3            ## @RC_TYPE_UNKNOWN
	.no_dead_strip	_ivtv_i2c_new_ir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_i2c_new_ir
_ivtv_i2c_new_ir:                       ; @ivtv_i2c_new_ir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x0
	mov	x21, x0
	ldr	w8, [x21], #16
	strh	w3, [sp, #12]
Lloh0:
	adrp	x9, _I2C_CLIENT_END@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_CLIENT_END@GOTPAGEOFF]
	ldrh	w9, [x9]
	strh	w9, [sp, #14]
Lloh2:
	adrp	x9, _IVTV_HW_IR_TX_ANY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IVTV_HW_IR_TX_ANY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_3
; %bb.1:
	tst	w8, w9
	b.ne	LBB0_4
; %bb.2:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	b	LBB0_14
LBB0_3:
Lloh5:
	adrp	x9, _IVTV_HW_IR_RX_ANY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IVTV_HW_IR_RX_ANY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_4:
	mov	w0, #-1
	b	LBB0_15
LBB0_5:
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.6:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
Lloh10:
	adrp	x8, _RC_MAP_RC5_TV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RC_MAP_RC5_TV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh13:
	adrp	x8, _IR_KBD_GET_KEY_HAUP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IR_KBD_GET_KEY_HAUP@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _RC_MAP_HAUPPAUGE_NEW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RC_MAP_HAUPPAUGE_NEW@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh18:
	adrp	x8, _IR_KBD_GET_KEY_HAUP_XVR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IR_KBD_GET_KEY_HAUP_XVR@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh20:
	adrp	x8, _RC_TYPE_RC5@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RC_TYPE_RC5@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	b	LBB0_12
LBB0_10:
Lloh23:
	adrp	x8, _RC_MAP_AVERMEDIA_CARDBUS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RC_MAP_AVERMEDIA_CARDBUS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh26:
	adrp	x8, _IR_KBD_GET_KEY_AVERMEDIA_CARDBUS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IR_KBD_GET_KEY_AVERMEDIA_CARDBUS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _RC_TYPE_OTHER@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RC_TYPE_OTHER@GOTPAGEOFF]
	str	w8, [x20, #40]
Lloh31:
	ldr	x8, [x9]
Lloh32:
	adrp	x9, l_.str@PAGE
Lloh33:
	add	x9, x9, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh34:
	adrp	x8, _get_key_adaptec@GOTPAGE
Lloh35:
	ldr	x8, [x8, _get_key_adaptec@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
Lloh37:
	adrp	x10, _RC_MAP_EMPTY@GOTPAGE
Lloh38:
	ldr	x10, [x10, _RC_MAP_EMPTY@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	stp	w10, w8, [x20, #32]
Lloh40:
	adrp	x8, _RC_TYPE_UNKNOWN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RC_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
LBB0_12:
	stp	x9, x8, [x20, #16]
LBB0_13:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	x21, [sp, #24]
LBB0_14:
	ldr	w0, [sp, #16]
	add	x20, x20, #48
Lloh43:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_strlcpy
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x20
	bl	_i2c_new_probed_device
	cmp	x0, #0
	csetm	w0, eq
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
                                        ; -- End function
	.comm	_I2C_CLIENT_END,2,1             ; @I2C_CLIENT_END
	.comm	_IVTV_HW_IR_TX_ANY,4,2          ; @IVTV_HW_IR_TX_ANY
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.comm	_IVTV_HW_IR_RX_ANY,4,2          ; @IVTV_HW_IR_RX_ANY
	.comm	_RC_MAP_AVERMEDIA_CARDBUS,4,2   ; @RC_MAP_AVERMEDIA_CARDBUS
	.comm	_IR_KBD_GET_KEY_AVERMEDIA_CARDBUS,4,2 ; @IR_KBD_GET_KEY_AVERMEDIA_CARDBUS
	.comm	_RC_TYPE_OTHER,8,3              ; @RC_TYPE_OTHER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AVerMedia AVerTV card"

	.comm	_RC_MAP_RC5_TV,4,2              ; @RC_MAP_RC5_TV
	.comm	_IR_KBD_GET_KEY_HAUP,4,2        ; @IR_KBD_GET_KEY_HAUP
	.comm	_RC_TYPE_RC5,8,3                ; @RC_TYPE_RC5
	.comm	_RC_MAP_HAUPPAUGE_NEW,4,2       ; @RC_MAP_HAUPPAUGE_NEW
	.comm	_IR_KBD_GET_KEY_HAUP_XVR,4,2    ; @IR_KBD_GET_KEY_HAUP_XVR
	.comm	_get_key_adaptec,4,2            ; @get_key_adaptec
	.comm	_RC_MAP_EMPTY,4,2               ; @RC_MAP_EMPTY
	.comm	_RC_TYPE_UNKNOWN,8,3            ; @RC_TYPE_UNKNOWN
	.no_dead_strip	_ivtv_i2c_new_ir
.subsections_via_symbols
