	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_init_subdevs
_cx18_init_subdevs:                     ## @cx18_init_subdevs
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %r15d
	movl	$1, %ebx
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %rcx
	jmp	LBB0_1
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$132, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	%r13d, (%r14)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	addl	%ebx, %ebx
	cmpl	$32, %r12d
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %ebx
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movl	%ebx, %r13d
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$130, %r13d
	movq	%r14, %rdi
	movl	$130, %esi
	callq	_cx18_gpio_register
	leaq	LJTI0_0(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_cx18_i2c_register
	leaq	LJTI0_0(%rip), %rcx
	movl	%ebx, %r13d
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_10:
	testb	$-124, (%r14)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$132, %esi
	callq	_cx18_find_hw
	movq	%rax, 24(%r14)
LBB0_12:
	movq	8(%r14), %rax
	movl	4(%rax), %esi
	testl	%esi, %esi
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_cx18_find_hw
	movq	%rax, 16(%r14)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_cx18_init_subdevs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx18_init_subdevs
_cx18_init_subdevs:                     ; @cx18_init_subdevs
	.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	x19, x0
	mov	w20, #0
	ldr	x8, [x0, #8]
	ldr	w21, [x8]
	mov	w22, #1
Lloh0:
	adrp	x23, lJTI0_0@PAGE
Lloh1:
	add	x23, x23, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #132
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	orr	w8, w8, w24
	str	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	lsl	w22, w22, #1
	cmp	w20, #32
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tst	w22, w21
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	mov	x24, x22
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #130
	mov	x0, x19
	mov	w1, #130
	bl	_cx18_gpio_register
	cbnz	w0, LBB0_3
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_cx18_i2c_register
	mov	x24, x22
	cbnz	w0, LBB0_3
	b	LBB0_2
LBB0_9:
	ldrb	w8, [x19]
	mov	w9, #132
	tst	w8, w9
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #132
	bl	_cx18_find_hw
	str	x0, [x19, #24]
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	cbz	w1, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_cx18_find_hw
	str	x0, [x19, #16]
LBB0_13:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_3-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
                                        ; -- End function
	.no_dead_strip	_cx18_init_subdevs
.subsections_via_symbols
