	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada375_usb_phy_xlate
_armada375_usb_phy_xlate:               ## @armada375_usb_phy_xlate
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_PHY_NONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
LBB0_5:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_PHY_TYPE_USB2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_PHY_TYPE_USB2@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_11
## %bb.9:
	movq	_PHY_TYPE_USB3@GOTPCREL(%rip), %rdx
	movl	$1, %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_10
LBB0_11:
	movl	%ecx, 8(%rbx)
	movq	%rax, (%rbx)
	movq	16(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PHY_NONE,8,3                   ## @PHY_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This PHY has already been provided!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Check your device tree, only one controller can use it\n."

	.comm	_PHY_TYPE_USB2,8,3              ## @PHY_TYPE_USB2
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PHY_TYPE_USB3,8,3              ## @PHY_TYPE_USB3
L_.str.2:                               ## @.str.2
	.asciz	"Invalid PHY mode\n"

	.no_dead_strip	_armada375_usb_phy_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada375_usb_phy_xlate
_armada375_usb_phy_xlate:               ; @armada375_usb_phy_xlate
	.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	x21, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	w0, #0
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _PHY_TYPE_USB2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PHY_TYPE_USB2@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	ldr	x9, [x21]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_3
LBB0_6:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _PHY_TYPE_USB2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PHY_TYPE_USB2@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w9, #0
	b	LBB0_10
LBB0_8:
Lloh15:
	adrp	x9, _PHY_TYPE_USB3@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PHY_TYPE_USB3@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	w9, #1
LBB0_10:
	str	w9, [x20, #8]
	str	x8, [x20]
	ldr	x0, [x20, #16]
	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
LBB0_11:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_12:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
	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	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PHY_NONE,8,3                   ; @PHY_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This PHY has already been provided!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Check your device tree, only one controller can use it\n."

	.comm	_PHY_TYPE_USB2,8,3              ; @PHY_TYPE_USB2
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PHY_TYPE_USB3,8,3              ; @PHY_TYPE_USB3
l_.str.2:                               ; @.str.2
	.asciz	"Invalid PHY mode\n"

	.no_dead_strip	_armada375_usb_phy_xlate
.subsections_via_symbols
