	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_usb_phy0_get_vbus_det
_sun4i_usb_phy0_get_vbus_det:           ## @sun4i_usb_phy0_get_vbus_det
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %rdi
	addq	$16, %rsp
	popq	%rbp
	jmp	_gpiod_get_value_cansleep       ## TAILCALL
LBB0_1:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movq	_POWER_SUPPLY_PROP_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8(%rbp), %rdx
	callq	_power_supply_get_property
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movl	$1, %eax
	jmp	LBB0_5
LBB0_3:
	movl	-8(%rbp), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_PROP_PRESENT,4,2  ## @POWER_SUPPLY_PROP_PRESENT
	.no_dead_strip	_sun4i_usb_phy0_get_vbus_det
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_usb_phy0_get_vbus_det
_sun4i_usb_phy0_get_vbus_det:           ; @sun4i_usb_phy0_get_vbus_det
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x8, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_gpiod_get_value_cansleep
LBB0_2:
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _POWER_SUPPLY_PROP_PRESENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_SUPPLY_PROP_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_power_supply_get_property
	cbz	w0, LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	ldr	w0, [sp, #8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_PROP_PRESENT,4,2  ; @POWER_SUPPLY_PROP_PRESENT
	.no_dead_strip	_sun4i_usb_phy0_get_vbus_det
.subsections_via_symbols
