	.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, %r12d
	movq	%rdi, %r14
	movq	_hw_bus@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %r13d
	movslq	(%rax,%r13,4), %rbx
	shlq	$2, %rbx
	addq	16(%rdi), %rbx
	movq	_hw_devicenames@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	movl	%r12d, %ecx
	shll	%cl, %r15d
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_hw_addrs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	$-1, %esi
	cmpl	%r12d, %eax
	jbe	LBB0_13
## %bb.1:
	movq	_CX18_HW_TUNER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_7
## %bb.2:
	movq	8(%r14), %rax
	movq	16(%rax), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_v4l2_i2c_new_subdev
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r15d, (%rax)
LBB0_4:
	movq	8(%r14), %rax
	movq	8(%rax), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_v4l2_i2c_new_subdev
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%r15d, (%rax)
LBB0_6:
	movq	8(%r14), %rax
	movq	(%rax), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
LBB0_10:
	callq	_v4l2_i2c_new_subdev
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	%r15d, (%rax)
LBB0_12:
	cmpq	$1, %rax
	movl	$0, %esi
	sbbl	%esi, %esi
LBB0_13:
	movl	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_CX18_HW_IR_ANY@GOTPCREL(%rip), %rax
	movq	_hw_addrs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r13,4), %r8d
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx18_i2c_new_ir                ## TAILCALL
LBB0_8:
	testl	%r8d, %r8d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r8d, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_bus,8,3                     ## @hw_bus
	.comm	_hw_devicenames,8,3             ## @hw_devicenames
	.comm	_hw_addrs,8,3                   ## @hw_addrs
	.comm	_CX18_HW_TUNER,4,2              ## @CX18_HW_TUNER
	.comm	_CX18_HW_IR_ANY,4,2             ## @CX18_HW_IR_ANY
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _hw_bus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_bus@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x19, [x8, w1, uxtw #2]
	ldr	x22, [x0, #16]
Lloh3:
	adrp	x8, _hw_devicenames@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw_devicenames@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x20, [x8, w1, uxtw #3]
Lloh6:
	adrp	x24, _hw_addrs@GOTPAGE
Lloh7:
	ldr	x24, [x24, _hw_addrs@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, w23
	b.ls	LBB0_13
; %bb.1:
	add	x22, x22, x19, lsl #2
	mov	w8, #1
	lsl	w19, w8, w23
Lloh8:
	adrp	x8, _CX18_HW_TUNER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CX18_HW_TUNER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x4, [x8, #16]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	w3, #0
	bl	_v4l2_i2c_new_subdev
	cbz	x0, LBB0_4
; %bb.3:
	str	w19, [x0]
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	x4, [x8, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	w3, #0
	bl	_v4l2_i2c_new_subdev
	cbz	x0, LBB0_6
; %bb.5:
	str	w19, [x0]
LBB0_6:
	ldr	x8, [x21, #8]
	ldr	x4, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	w3, #0
	bl	_v4l2_i2c_new_subdev
	cbz	x0, LBB0_8
LBB0_7:
	str	w19, [x0]
LBB0_8:
	cmp	x0, #0
	csetm	w0, eq
	b	LBB0_14
LBB0_9:
Lloh11:
	adrp	x8, _CX18_HW_IR_ANY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CX18_HW_IR_ANY@GOTPAGEOFF]
	mov	w9, w23
Lloh13:
	ldr	w8, [x8]
	ldr	x10, [x24]
	ldr	w4, [x10, x9, lsl #2]
	tst	w8, w19
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cx18_i2c_new_ir
LBB0_11:
	cbz	w4, LBB0_13
; %bb.12:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x4
	mov	x4, #0
	bl	_v4l2_i2c_new_subdev
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_bus,8,3                     ; @hw_bus
	.comm	_hw_devicenames,8,3             ; @hw_devicenames
	.comm	_hw_addrs,8,3                   ; @hw_addrs
	.comm	_CX18_HW_TUNER,4,2              ; @CX18_HW_TUNER
	.comm	_CX18_HW_IR_ANY,4,2             ; @CX18_HW_IR_ANY
.subsections_via_symbols
