	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8727_init_device
_lp8727_init_device:                    ## @lp8727_init_device
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_LP8788_NUM_INTREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	_LP8727_INT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_lp8727_read_bytes
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_LP8727_ID200_EN@GOTPCREL(%rip), %rax
	movq	_LP8727_ADC_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_LP8727_CP_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_LP8727_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lp8727_write_byte
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_LP8727_INT_EN@GOTPCREL(%rip), %rax
	movq	_LP8727_CHGDET_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_LP8727_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lp8727_write_byte
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LP8788_NUM_INTREGS,4,2         ## @LP8788_NUM_INTREGS
	.comm	_LP8727_INT1,4,2                ## @LP8727_INT1
	.comm	_LP8727_ID200_EN,4,2            ## @LP8727_ID200_EN
	.comm	_LP8727_ADC_EN,4,2              ## @LP8727_ADC_EN
	.comm	_LP8727_CP_EN,4,2               ## @LP8727_CP_EN
	.comm	_LP8727_CTRL1,4,2               ## @LP8727_CTRL1
	.comm	_LP8727_INT_EN,4,2              ## @LP8727_INT_EN
	.comm	_LP8727_CHGDET_EN,4,2           ## @LP8727_CHGDET_EN
	.comm	_LP8727_CTRL2,4,2               ## @LP8727_CTRL2
	.no_dead_strip	_lp8727_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8727_init_device
_lp8727_init_device:                    ; @lp8727_init_device
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _LP8788_NUM_INTREGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP8788_NUM_INTREGS@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	lsl	x8, x3, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x2, x9, x8
	mov	sp, x2
Lloh8:
	adrp	x8, _LP8727_INT1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LP8727_INT1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_lp8727_read_bytes
	cbnz	w0, LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _LP8727_ID200_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LP8727_ID200_EN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _LP8727_ADC_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LP8727_ADC_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _LP8727_CP_EN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _LP8727_CP_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh19:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh20:
	adrp	x8, _LP8727_CTRL1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LP8727_CTRL1@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lp8727_write_byte
	cbnz	w0, LBB0_3
; %bb.2:
Lloh23:
	adrp	x8, _LP8727_INT_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LP8727_INT_EN@GOTPAGEOFF]
Lloh25:
	adrp	x9, _LP8727_CHGDET_EN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _LP8727_CHGDET_EN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh29:
	adrp	x8, _LP8727_CTRL2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LP8727_CTRL2@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lp8727_write_byte
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_LP8788_NUM_INTREGS,4,2         ; @LP8788_NUM_INTREGS
	.comm	_LP8727_INT1,4,2                ; @LP8727_INT1
	.comm	_LP8727_ID200_EN,4,2            ; @LP8727_ID200_EN
	.comm	_LP8727_ADC_EN,4,2              ; @LP8727_ADC_EN
	.comm	_LP8727_CP_EN,4,2               ; @LP8727_CP_EN
	.comm	_LP8727_CTRL1,4,2               ; @LP8727_CTRL1
	.comm	_LP8727_INT_EN,4,2              ; @LP8727_INT_EN
	.comm	_LP8727_CHGDET_EN,4,2           ; @LP8727_CHGDET_EN
	.comm	_LP8727_CTRL2,4,2               ; @LP8727_CTRL2
	.no_dead_strip	_lp8727_init_device
.subsections_via_symbols
