	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function miphy28lp_get_addr
_miphy28lp_get_addr:                    ## @miphy28lp_get_addr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movq	_PHY_TYPE_SATA@GOTPCREL(%rip), %rdx
	movq	%rcx, %rax
	movq	_PHY_TYPE_PCIE@GOTPCREL(%rip), %r12
	movq	_PHY_TYPE_USB3@GOTPCREL(%rip), %r15
	subq	(%rdx), %rax
	je	LBB0_4
## %bb.1:
	cmpq	(%r12), %rcx
	je	LBB0_4
## %bb.2:
	cmpq	(%r15), %rcx
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_4:
	movq	24(%rbx), %r13
	movl	(%r13), %edi
	movq	_PHY_TYPE_name@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rdx
	leaq	12(%rbx), %rcx
	movq	%r14, %rsi
	callq	_miphy28lp_get_one_addr
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_7
## %bb.6:
	cmpq	(%r15), %rax
	jne	LBB0_8
LBB0_7:
	movl	(%r13), %edi
	addq	$8, %rbx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_miphy28lp_get_one_addr
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TYPE_SATA,8,3              ## @PHY_TYPE_SATA
	.comm	_PHY_TYPE_PCIE,8,3              ## @PHY_TYPE_PCIE
	.comm	_PHY_TYPE_USB3,8,3              ## @PHY_TYPE_USB3
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PHY_TYPE_name,8,3              ## @PHY_TYPE_name
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipew"

	.no_dead_strip	_miphy28lp_get_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function miphy28lp_get_addr
_miphy28lp_get_addr:                    ; @miphy28lp_get_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _PHY_TYPE_SATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_TYPE_SATA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x21, _PHY_TYPE_PCIE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PHY_TYPE_PCIE@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh5:
	adrp	x22, _PHY_TYPE_USB3@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PHY_TYPE_USB3@GOTPAGEOFF]
	ldr	x11, [x22]
	subs	x8, x9, x8
	ccmp	x9, x10, #4, ne
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldp	x9, x23, [x0, #16]
	ldr	x20, [x9]
	ldr	w0, [x23]
Lloh7:
	adrp	x9, _PHY_TYPE_name@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PHY_TYPE_name@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x2, [x9, x8, lsl #3]
	add	x3, x19, #12
	mov	x1, x20
	bl	_miphy28lp_get_one_addr
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x23]
	add	x3, x19, #8
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_miphy28lp_get_one_addr
	cbnz	w0, LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TYPE_SATA,8,3              ; @PHY_TYPE_SATA
	.comm	_PHY_TYPE_PCIE,8,3              ; @PHY_TYPE_PCIE
	.comm	_PHY_TYPE_USB3,8,3              ; @PHY_TYPE_USB3
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PHY_TYPE_name,8,3              ; @PHY_TYPE_name
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipew"

	.no_dead_strip	_miphy28lp_get_addr
.subsections_via_symbols
