	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_i2c_new_ir
_cx18_i2c_new_ir:                       ## @cx18_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movw	%r8w, -44(%rbp)
	movq	_I2C_CLIENT_END@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movw	%ax, -42(%rbp)
	leaq	-64(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-56(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_strlcpy
	cmpl	$128, %r13d
	jne	LBB0_2
## %bb.1:
	leaq	4(%rbx), %rax
	movq	_RC_MAP_HAUPPAUGE_NEW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	_IR_KBD_GET_KEY_HAUP_XVR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movq	_RC_TYPE_RC5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	(%rbx), %ecx
	movl	%ecx, 4(%rbx)
	movq	%rax, -64(%rbp)
LBB0_2:
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_i2c_new_probed_device
	cmpq	$1, %rax
	sbbl	%r15d, %r15d
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CLIENT_END,2,1             ## @I2C_CLIENT_END
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.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	_RC_TYPE_RC5,4,2                ## @RC_TYPE_RC5
	.no_dead_strip	_cx18_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 cx18_i2c_new_ir
_cx18_i2c_new_ir:                       ; @cx18_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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	strh	w4, [sp, #12]
Lloh0:
	adrp	x8, _I2C_CLIENT_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_CLIENT_END@GOTPAGEOFF]
	ldrh	w8, [x8]
	strh	w8, [sp, #14]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #24]
Lloh2:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_strlcpy
	cmp	w22, #128
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _RC_MAP_HAUPPAUGE_NEW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RC_MAP_HAUPPAUGE_NEW@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20]
	str	w9, [x20, #4]!
	str	w8, [x20, #12]
Lloh8:
	adrp	x8, _IR_KBD_GET_KEY_HAUP_XVR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IR_KBD_GET_KEY_HAUP_XVR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _RC_TYPE_RC5@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RC_TYPE_RC5@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
	str	x20, [sp, #16]
LBB0_2:
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x19
	bl	_i2c_new_probed_device
	cmp	x0, #0
	csetm	w0, eq
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CLIENT_END,2,1             ; @I2C_CLIENT_END
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.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	_RC_TYPE_RC5,4,2                ; @RC_TYPE_RC5
	.no_dead_strip	_cx18_i2c_new_ir
.subsections_via_symbols
