	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_is_driving_vbus
_twl4030_is_driving_vbus:               ## @twl4030_is_driving_vbus
	.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, %rbx
	movq	_PHY_CLK_CTRL_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_twl4030_usb_read
	xorl	%r14d, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_PHY_DPLL_CLK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_ULPI_OTG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_twl4030_usb_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_ULPI_OTG_DRVVBUS@GOTPCREL(%rip), %rcx
	movq	_ULPI_OTG_CHRGVBUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%r14d, %r14d
	testl	%eax, %edx
	setne	%r14b
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_CLK_CTRL_STS,4,2           ## @PHY_CLK_CTRL_STS
	.comm	_PHY_DPLL_CLK,4,2               ## @PHY_DPLL_CLK
	.comm	_ULPI_OTG_CTRL,4,2              ## @ULPI_OTG_CTRL
	.comm	_ULPI_OTG_DRVVBUS,4,2           ## @ULPI_OTG_DRVVBUS
	.comm	_ULPI_OTG_CHRGVBUS,4,2          ## @ULPI_OTG_CHRGVBUS
	.no_dead_strip	_twl4030_is_driving_vbus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_is_driving_vbus
_twl4030_is_driving_vbus:               ; @twl4030_is_driving_vbus
	.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
Lloh0:
	adrp	x8, _PHY_CLK_CTRL_STS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_CLK_CTRL_STS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_twl4030_usb_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _PHY_DPLL_CLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_DPLL_CLK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _ULPI_OTG_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ULPI_OTG_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_twl4030_usb_read
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _ULPI_OTG_DRVVBUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ULPI_OTG_DRVVBUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ULPI_OTG_CHRGVBUS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ULPI_OTG_CHRGVBUS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	cset	w0, ne
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CLK_CTRL_STS,4,2           ; @PHY_CLK_CTRL_STS
	.comm	_PHY_DPLL_CLK,4,2               ; @PHY_DPLL_CLK
	.comm	_ULPI_OTG_CTRL,4,2              ; @ULPI_OTG_CTRL
	.comm	_ULPI_OTG_DRVVBUS,4,2           ; @ULPI_OTG_DRVVBUS
	.comm	_ULPI_OTG_CHRGVBUS,4,2          ; @ULPI_OTG_CHRGVBUS
	.no_dead_strip	_twl4030_is_driving_vbus
.subsections_via_symbols
