	.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	_strscpy
	cmpl	$128, %r13d
	jne	LBB0_2
## %bb.1:
	movq	_RC_MAP_HAUPPAUGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_IR_KBD_GET_KEY_HAUP_XVR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_RC_PROTO_BIT_RC5@GOTPCREL(%rip), %rax
	movq	_RC_PROTO_BIT_RC6_MCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	4(%rbx), %rax
	movq	_RC_PROTO_BIT_RC6_6A_32@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%rbx)
	movl	(%rbx), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rax, -64(%rbp)
LBB0_2:
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	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,4,2           ## @RC_MAP_HAUPPAUGE
	.comm	_IR_KBD_GET_KEY_HAUP_XVR,4,2    ## @IR_KBD_GET_KEY_HAUP_XVR
	.comm	_RC_PROTO_BIT_RC5,4,2           ## @RC_PROTO_BIT_RC5
	.comm	_RC_PROTO_BIT_RC6_MCE,4,2       ## @RC_PROTO_BIT_RC6_MCE
	.comm	_RC_PROTO_BIT_RC6_6A_32,4,2     ## @RC_PROTO_BIT_RC6_6A_32
	.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	_strscpy
	cmp	w22, #128
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _RC_MAP_HAUPPAUGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RC_MAP_HAUPPAUGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #16]
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_PROTO_BIT_RC5@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RC_PROTO_BIT_RC5@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _RC_PROTO_BIT_RC6_MCE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _RC_PROTO_BIT_RC6_MCE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh17:
	adrp	x10, _RC_PROTO_BIT_RC6_6A_32@GOTPAGE
Lloh18:
	ldr	x10, [x10, _RC_PROTO_BIT_RC6_6A_32@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	x10, x20
	str	w9, [x10, #4]!
	ldr	w9, [x20]
	stp	w9, w8, [x20, #8]
	str	x10, [sp, #16]
LBB0_2:
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, #0
	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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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,4,2           ; @RC_MAP_HAUPPAUGE
	.comm	_IR_KBD_GET_KEY_HAUP_XVR,4,2    ; @IR_KBD_GET_KEY_HAUP_XVR
	.comm	_RC_PROTO_BIT_RC5,4,2           ; @RC_PROTO_BIT_RC5
	.comm	_RC_PROTO_BIT_RC6_MCE,4,2       ; @RC_PROTO_BIT_RC6_MCE
	.comm	_RC_PROTO_BIT_RC6_6A_32,4,2     ; @RC_PROTO_BIT_RC6_6A_32
	.no_dead_strip	_cx18_i2c_new_ir
.subsections_via_symbols
