	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_i2c_register              ## -- Begin function cx18_i2c_register
	.p2align	4, 0x90
_cx18_i2c_register:                     ## @cx18_i2c_register
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movq	%rdi, %r15
	movq	_hw_bus@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%esi, %eax
	movslq	(%rdx,%rax,4), %rbx
	shlq	$2, %rbx
	addq	16(%rdi), %rbx
	movq	_hw_devicenames@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rax,8), %r12
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movslq	%edx, %r14
	movq	_CX18_HW_TUNER@GOTPCREL(%rip), %rcx
	cmpq	%r14, (%rcx)
	jne	LBB0_6
## %bb.1:
	movq	8(%r15), %rax
	movq	16(%rax), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_v4l2_i2c_new_subdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, (%rax)
LBB0_3:
	movq	8(%r15), %rax
	movq	8(%rax), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_v4l2_i2c_new_subdev
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, (%rax)
LBB0_5:
	movq	8(%r15), %rax
	movq	(%rax), %r8
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_6:
	movq	_CX18_HW_Z8F0811_IR_HAUP@GOTPCREL(%rip), %rcx
	movq	_hw_addrs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rax,4), %r8d
	cmpq	%r14, (%rcx)
	jne	LBB0_7
## %bb.14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx18_i2c_new_ir                ## TAILCALL
LBB0_7:
	testl	%r8d, %r8d
	je	LBB0_8
## %bb.9:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%r8d, %ecx
	xorl	%r8d, %r8d
LBB0_10:
	callq	_v4l2_i2c_new_subdev
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, (%rax)
LBB0_12:
	cmpq	$1, %rax
	sbbl	%r13d, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$-1, %r13d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_bus,8,3                     ## @hw_bus
	.comm	_hw_devicenames,8,3             ## @hw_devicenames
	.comm	_CX18_HW_TUNER,8,3              ## @CX18_HW_TUNER
	.comm	_CX18_HW_Z8F0811_IR_HAUP,8,3    ## @CX18_HW_Z8F0811_IR_HAUP
	.comm	_hw_addrs,8,3                   ## @hw_addrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_i2c_register              ; -- Begin function cx18_i2c_register
	.p2align	2
_cx18_i2c_register:                     ; @cx18_i2c_register
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x8, _hw_bus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_bus@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x8, [x8, w1, uxtw #2]
	ldr	x9, [x0, #16]
	add	x21, x9, x8, lsl #2
Lloh3:
	adrp	x8, _hw_devicenames@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw_devicenames@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x22, [x8, w1, uxtw #3]
	mov	w8, #1
	lsl	w8, w8, w1
	sxtw	x19, w8
Lloh6:
	adrp	x8, _CX18_HW_TUNER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CX18_HW_TUNER@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x4, [x8, #16]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	bl	_v4l2_i2c_new_subdev
	cbz	x0, LBB0_3
; %bb.2:
	str	x19, [x0]
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x4, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	bl	_v4l2_i2c_new_subdev
	cbz	x0, LBB0_5
; %bb.4:
	str	x19, [x0]
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	x4, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	bl	_v4l2_i2c_new_subdev
	cbz	x0, LBB0_7
LBB0_6:
	str	x19, [x0]
LBB0_7:
	cmp	x0, #0
	csetm	w0, eq
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w8, w1
Lloh9:
	adrp	x9, _CX18_HW_Z8F0811_IR_HAUP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CX18_HW_Z8F0811_IR_HAUP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _hw_addrs@GOTPAGE
Lloh13:
	ldr	x10, [x10, _hw_addrs@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	w4, [x10, x8, lsl #2]
	cmp	x9, x19
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cx18_i2c_new_ir
LBB0_11:
	cbz	w4, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x4
	mov	x4, #0
	bl	_v4l2_i2c_new_subdev
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_13:
	mov	w0, #-1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_bus,8,3                     ; @hw_bus
	.comm	_hw_devicenames,8,3             ; @hw_devicenames
	.comm	_CX18_HW_TUNER,8,3              ; @CX18_HW_TUNER
	.comm	_CX18_HW_Z8F0811_IR_HAUP,8,3    ; @CX18_HW_Z8F0811_IR_HAUP
	.comm	_hw_addrs,8,3                   ; @hw_addrs
.subsections_via_symbols
