	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_usb_phy_passby
_sun4i_usb_phy_passby:                  ## @sun4i_usb_phy_passby
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_to_sun4i_usb_phy_data
	movl	4(%r15), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.1:
	movq	_SUNXI_AHB_ICHR8_EN@GOTPCREL(%rip), %rcx
	movq	_SUNXI_AHB_INCR4_BURST_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_SUNXI_AHB_INCRX_ALIGN_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_SUNXI_ULPI_BYPASS_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_sun8i_a83t_phy@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	cmpl	$2, (%r15)
	jne	LBB0_4
## %bb.3:
	movq	_SUNXI_EHCI_HS_FORCE@GOTPCREL(%rip), %rax
	movq	_SUNXI_HSIC_CONNECT_INT@GOTPCREL(%rip), %rcx
	movq	_SUNXI_HSIC@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
LBB0_4:
	callq	_readl
	movl	%eax, %ecx
	orl	%ebx, %ecx
	notl	%ebx
	andl	%eax, %ebx
	testl	%r14d, %r14d
	cmovnel	%ecx, %ebx
	movl	4(%r15), %esi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUNXI_AHB_ICHR8_EN,4,2         ## @SUNXI_AHB_ICHR8_EN
	.comm	_SUNXI_AHB_INCR4_BURST_EN,4,2   ## @SUNXI_AHB_INCR4_BURST_EN
	.comm	_SUNXI_AHB_INCRX_ALIGN_EN,4,2   ## @SUNXI_AHB_INCRX_ALIGN_EN
	.comm	_SUNXI_ULPI_BYPASS_EN,4,2       ## @SUNXI_ULPI_BYPASS_EN
	.comm	_sun8i_a83t_phy,8,3             ## @sun8i_a83t_phy
	.comm	_SUNXI_EHCI_HS_FORCE,4,2        ## @SUNXI_EHCI_HS_FORCE
	.comm	_SUNXI_HSIC_CONNECT_INT,4,2     ## @SUNXI_HSIC_CONNECT_INT
	.comm	_SUNXI_HSIC,4,2                 ## @SUNXI_HSIC
	.no_dead_strip	_sun4i_usb_phy_passby
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_usb_phy_passby
_sun4i_usb_phy_passby:                  ; @sun4i_usb_phy_passby
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_to_sun4i_usb_phy_data
	mov	x8, x0
	ldr	w0, [x19, #4]
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _SUNXI_AHB_ICHR8_EN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUNXI_AHB_ICHR8_EN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SUNXI_AHB_INCR4_BURST_EN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SUNXI_AHB_INCR4_BURST_EN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _SUNXI_AHB_INCRX_ALIGN_EN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SUNXI_AHB_INCRX_ALIGN_EN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh9:
	adrp	x10, _SUNXI_ULPI_BYPASS_EN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SUNXI_ULPI_BYPASS_EN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w21, w9, w10
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _sun8i_a83t_phy@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sun8i_a83t_phy@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _SUNXI_EHCI_HS_FORCE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUNXI_EHCI_HS_FORCE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SUNXI_HSIC_CONNECT_INT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SUNXI_HSIC_CONNECT_INT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _SUNXI_HSIC@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SUNXI_HSIC@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w21, w8, w10
LBB0_4:
	bl	_readl
	orr	w8, w0, w21
	bic	w9, w0, w21
	cmp	w20, #0
	csel	w0, w9, w8, eq
	ldr	w1, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SUNXI_AHB_ICHR8_EN,4,2         ; @SUNXI_AHB_ICHR8_EN
	.comm	_SUNXI_AHB_INCR4_BURST_EN,4,2   ; @SUNXI_AHB_INCR4_BURST_EN
	.comm	_SUNXI_AHB_INCRX_ALIGN_EN,4,2   ; @SUNXI_AHB_INCRX_ALIGN_EN
	.comm	_SUNXI_ULPI_BYPASS_EN,4,2       ; @SUNXI_ULPI_BYPASS_EN
	.comm	_sun8i_a83t_phy,8,3             ; @sun8i_a83t_phy
	.comm	_SUNXI_EHCI_HS_FORCE,4,2        ; @SUNXI_EHCI_HS_FORCE
	.comm	_SUNXI_HSIC_CONNECT_INT,4,2     ; @SUNXI_HSIC_CONNECT_INT
	.comm	_SUNXI_HSIC,4,2                 ; @SUNXI_HSIC
	.no_dead_strip	_sun4i_usb_phy_passby
.subsections_via_symbols
