	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8727_id_detection
_lp8727_id_detection:                   ## @lp8727_id_detection
	.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, %rbx
	movq	16(%rdi), %r13
	movq	_LP8727_ID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_LP8727_SW_DM1_HiZ@GOTPCREL(%rip), %rax
	movq	_LP8727_SW_DP2_HiZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	cmpl	$11, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$5, %esi
	jne	LBB0_19
## %bb.2:
	movq	_LP8727_ID_TA@GOTPCREL(%rip), %rax
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	movq	8(%r13), %rcx
	jmp	LBB0_5
LBB0_6:
	movl	%edx, %r15d
	movq	%rbx, %rdi
	callq	_lp8727_is_dedicated_charger
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	testq	%r13, %r13
	je	LBB0_8
## %bb.9:
	movq	8(%r13), %rax
	jmp	LBB0_10
LBB0_19:
	movq	$0, 8(%rbx)
	jmp	LBB0_20
LBB0_3:
	xorl	%ecx, %ecx
LBB0_5:
	movl	(%rax), %r12d
	movq	%rcx, 8(%rbx)
	jmp	LBB0_20
LBB0_11:
	movq	%rbx, %rdi
	callq	_lp8727_is_usb_charger
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	testq	%r13, %r13
	je	LBB0_13
## %bb.14:
	movq	(%r13), %rax
	jmp	LBB0_15
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	movq	%rax, 8(%rbx)
	movq	_LP8727_ID_DEDICATED_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_20
LBB0_16:
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.17:
	movq	_LP8727_ID_USB_DS@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_13:
	xorl	%eax, %eax
LBB0_15:
	movq	%rax, 8(%rbx)
	movq	_LP8727_ID_USB_CHG@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r12d
	movq	_LP8727_SW_DM1_DM@GOTPCREL(%rip), %rax
	movq	_LP8727_SW_DP2_DP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
LBB0_20:
	movl	%r12d, (%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lp8727_ctrl_switch             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LP8727_ID_NONE,4,2             ## @LP8727_ID_NONE
	.comm	_LP8727_SW_DM1_HiZ,4,2          ## @LP8727_SW_DM1_HiZ
	.comm	_LP8727_SW_DP2_HiZ,4,2          ## @LP8727_SW_DP2_HiZ
	.comm	_LP8727_ID_TA,4,2               ## @LP8727_ID_TA
	.comm	_LP8727_ID_DEDICATED_CHG,4,2    ## @LP8727_ID_DEDICATED_CHG
	.comm	_LP8727_ID_USB_CHG,4,2          ## @LP8727_ID_USB_CHG
	.comm	_LP8727_SW_DM1_DM,4,2           ## @LP8727_SW_DM1_DM
	.comm	_LP8727_SW_DP2_DP,4,2           ## @LP8727_SW_DP2_DP
	.comm	_LP8727_ID_USB_DS,4,2           ## @LP8727_ID_USB_DS
	.no_dead_strip	_lp8727_id_detection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8727_id_detection
_lp8727_id_detection:                   ; @lp8727_id_detection
	.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
	ldr	x23, [x0, #16]
Lloh0:
	adrp	x8, _LP8727_ID_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP8727_ID_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _LP8727_SW_DM1_HiZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP8727_SW_DM1_HiZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _LP8727_SW_DP2_HiZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LP8727_SW_DP2_HiZ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w20, w9, w8
	cmp	w1, #11
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #5
	b.ne	LBB0_7
; %bb.2:
Lloh9:
	adrp	x8, _LP8727_ID_TA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LP8727_ID_TA@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	cbz	x23, LBB0_8
; %bb.3:
	ldr	x8, [x23, #8]
	str	x8, [x19, #8]
	b	LBB0_19
LBB0_4:
	mov	x21, x2
	mov	x0, x19
	bl	_lp8727_is_dedicated_charger
	cbz	w0, LBB0_9
; %bb.5:
	cbz	x23, LBB0_12
; %bb.6:
	ldr	x8, [x23, #8]
	b	LBB0_13
LBB0_7:
	str	xzr, [x19, #8]
	b	LBB0_19
LBB0_8:
	mov	x8, #0
	str	xzr, [x19, #8]
	b	LBB0_19
LBB0_9:
	mov	x0, x19
	bl	_lp8727_is_usb_charger
	cbz	w0, LBB0_14
; %bb.10:
	cbz	x23, LBB0_16
; %bb.11:
	ldr	x8, [x23]
	b	LBB0_17
LBB0_12:
	mov	x8, #0
LBB0_13:
	str	x8, [x19, #8]
Lloh12:
	adrp	x8, _LP8727_ID_DEDICATED_CHG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LP8727_ID_DEDICATED_CHG@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	b	LBB0_19
LBB0_14:
	cbz	w21, LBB0_19
; %bb.15:
Lloh15:
	adrp	x8, _LP8727_ID_USB_DS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LP8727_ID_USB_DS@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	mov	x8, #0
LBB0_17:
	str	x8, [x19, #8]
Lloh17:
	adrp	x8, _LP8727_ID_USB_CHG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LP8727_ID_USB_CHG@GOTPAGEOFF]
LBB0_18:
Lloh19:
	adrp	x9, _LP8727_SW_DM1_DM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LP8727_SW_DM1_DM@GOTPAGEOFF]
	ldr	w22, [x8]
Lloh21:
	ldr	w8, [x9]
Lloh22:
	adrp	x9, _LP8727_SW_DP2_DP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _LP8727_SW_DP2_DP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w20, w9, w8
LBB0_19:
	str	w22, [x19]
	mov	x0, x19
	mov	x1, 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	_lp8727_ctrl_switch
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LP8727_ID_NONE,4,2             ; @LP8727_ID_NONE
	.comm	_LP8727_SW_DM1_HiZ,4,2          ; @LP8727_SW_DM1_HiZ
	.comm	_LP8727_SW_DP2_HiZ,4,2          ; @LP8727_SW_DP2_HiZ
	.comm	_LP8727_ID_TA,4,2               ; @LP8727_ID_TA
	.comm	_LP8727_ID_DEDICATED_CHG,4,2    ; @LP8727_ID_DEDICATED_CHG
	.comm	_LP8727_ID_USB_CHG,4,2          ; @LP8727_ID_USB_CHG
	.comm	_LP8727_SW_DM1_DM,4,2           ; @LP8727_SW_DM1_DM
	.comm	_LP8727_SW_DP2_DP,4,2           ; @LP8727_SW_DP2_DP
	.comm	_LP8727_ID_USB_DS,4,2           ; @LP8727_ID_USB_DS
	.no_dead_strip	_lp8727_id_detection
.subsections_via_symbols
