	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_berlin_sata_phy_xlate
_phy_berlin_sata_phy_xlate:             ## @phy_berlin_sata_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setge	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_2
## %bb.3:
	movq	8(%r14), %rdx
	movq	(%rbx), %rcx
	movq	(%rcx), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rcx,8), %rdi
	cmpq	%rsi, (%rdi)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.6:
	movq	%rax, %rcx
	jmp	LBB0_7
LBB0_2:
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %ecx
	cmpq	%rcx, %rax
	jne	LBB0_8
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	8(%r14), %rax
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_phy_berlin_sata_phy_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_berlin_sata_phy_xlate
_phy_berlin_sata_phy_xlate:             ; @phy_berlin_sata_phy_xlate
	.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	x20, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x0]
	cmp	x8, x9
	cset	w0, ge
	bl	_WARN_ON
	cbnz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x9, #0
	ldr	x10, [x19, #8]
	ldr	x11, [x20]
	ldr	x11, [x11]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x9, lsl #3]
	ldr	x12, [x12]
	cmp	x12, x11
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:
	mov	x9, x8
	b	LBB0_7
LBB0_6:
	mov	x9, #0
LBB0_7:
	and	x9, x9, #0xffffffff
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x0, [x8, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_phy_berlin_sata_phy_xlate
.subsections_via_symbols
