	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg216x_initialize
_lg216x_initialize:                     ## @lg216x_initialize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.2:
	leaq	_lg216x_initialize.lg2160_init(%rip), %rbx
	jmp	LBB0_3
LBB0_4:
	leaq	_lg216x_initialize.lg2161_init(%rip), %rbx
LBB0_3:
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_lg216x_write_regs
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_lg216x_soft_reset
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_fail
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @lg216x_initialize.lg2160_init
_lg216x_initialize.lg2160_init:
	.long	21                              ## 0x15
	.long	247                             ## 0xf7
	.long	27                              ## 0x1b
	.long	82                              ## 0x52
	.long	520                             ## 0x208
	.long	0                               ## 0x0
	.long	521                             ## 0x209
	.long	130                             ## 0x82
	.long	528                             ## 0x210
	.long	249                             ## 0xf9
	.long	522                             ## 0x20a
	.long	0                               ## 0x0
	.long	523                             ## 0x20b
	.long	130                             ## 0x82
	.long	525                             ## 0x20d
	.long	40                              ## 0x28
	.long	527                             ## 0x20f
	.long	20                              ## 0x14

	.p2align	4                               ## @lg216x_initialize.lg2161_init
_lg216x_initialize.lg2161_init:
	.long	0                               ## 0x0
	.long	65                              ## 0x41
	.long	1                               ## 0x1
	.long	251                             ## 0xfb
	.long	534                             ## 0x216
	.long	0                               ## 0x0
	.long	537                             ## 0x219
	.long	0                               ## 0x0
	.long	539                             ## 0x21b
	.long	85                              ## 0x55
	.long	1542                            ## 0x606
	.long	10                              ## 0xa

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lg216x_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg216x_initialize
_lg216x_initialize:                     ; @lg216x_initialize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x20, _lg216x_initialize.lg2160_init@PAGE
Lloh1:
	add	x20, x20, _lg216x_initialize.lg2160_init@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x20, _lg216x_initialize.lg2161_init@PAGE
Lloh3:
	add	x20, x20, _lg216x_initialize.lg2161_init@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_lg216x_write_regs
	mov	x20, x0
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	bl	_lg_fail
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_lg216x_soft_reset
	mov	x20, x0
	bl	_lg_fail
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @lg216x_initialize.lg2160_init
_lg216x_initialize.lg2160_init:
	.long	21                              ; 0x15
	.long	247                             ; 0xf7
	.long	27                              ; 0x1b
	.long	82                              ; 0x52
	.long	520                             ; 0x208
	.long	0                               ; 0x0
	.long	521                             ; 0x209
	.long	130                             ; 0x82
	.long	528                             ; 0x210
	.long	249                             ; 0xf9
	.long	522                             ; 0x20a
	.long	0                               ; 0x0
	.long	523                             ; 0x20b
	.long	130                             ; 0x82
	.long	525                             ; 0x20d
	.long	40                              ; 0x28
	.long	527                             ; 0x20f
	.long	20                              ; 0x14

	.p2align	2                               ; @lg216x_initialize.lg2161_init
_lg216x_initialize.lg2161_init:
	.long	0                               ; 0x0
	.long	65                              ; 0x41
	.long	1                               ; 0x1
	.long	251                             ; 0xfb
	.long	534                             ; 0x216
	.long	0                               ; 0x0
	.long	537                             ; 0x219
	.long	0                               ; 0x0
	.long	539                             ; 0x21b
	.long	85                              ; 0x55
	.long	1542                            ; 0x606
	.long	10                              ; 0xa

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lg216x_initialize
.subsections_via_symbols
