	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_mbx_get_phy_info
_ocrdma_mbx_get_phy_info:               ## @ocrdma_mbx_get_phy_info
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_OCRDMA_CMD_PHY_DETAILS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$8, %esi
	callq	_ocrdma_init_emb_mqe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	movl	(%r12), %esi
	movq	_OCRDMA_SUBSYS_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %ecx
	callq	_ocrdma_init_mch
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ocrdma_mbx_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
	movq	_OCRDMA_PHY_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, (%r14)
	movq	_OCRDMA_IF_TYPE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_OCRDMA_IF_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 4(%r14)
	movl	4(%rbx), %eax
	movq	_OCRDMA_ASPEED_SUPP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, 8(%r14)
	movq	_OCRDMA_FSPEED_SUPP_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_OCRDMA_FSPEED_SUPP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 12(%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_1:
	negl	%r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCRDMA_CMD_PHY_DETAILS,4,2     ## @OCRDMA_CMD_PHY_DETAILS
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ## @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_PHY_TYPE_MASK,4,2       ## @OCRDMA_PHY_TYPE_MASK
	.comm	_OCRDMA_IF_TYPE_MASK,4,2        ## @OCRDMA_IF_TYPE_MASK
	.comm	_OCRDMA_IF_TYPE_SHIFT,4,2       ## @OCRDMA_IF_TYPE_SHIFT
	.comm	_OCRDMA_ASPEED_SUPP_MASK,4,2    ## @OCRDMA_ASPEED_SUPP_MASK
	.comm	_OCRDMA_FSPEED_SUPP_MASK,4,2    ## @OCRDMA_FSPEED_SUPP_MASK
	.comm	_OCRDMA_FSPEED_SUPP_SHIFT,4,2   ## @OCRDMA_FSPEED_SUPP_SHIFT
	.no_dead_strip	_ocrdma_mbx_get_phy_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_mbx_get_phy_info
_ocrdma_mbx_get_phy_info:               ; @ocrdma_mbx_get_phy_info
	.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	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x22, _OCRDMA_CMD_PHY_DETAILS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _OCRDMA_CMD_PHY_DETAILS@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #8
	bl	_ocrdma_init_emb_mqe
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0]
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _OCRDMA_SUBSYS_COMMON@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OCRDMA_SUBSYS_COMMON@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w3, #8
	bl	_ocrdma_init_mch
	mov	x0, x19
	mov	x1, x20
	bl	_ocrdma_mbx_cmd
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _OCRDMA_PHY_TYPE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OCRDMA_PHY_TYPE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w9, w10, [x20]
	and	w8, w8, w9
	str	w8, [x19]
Lloh11:
	adrp	x8, _OCRDMA_IF_TYPE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OCRDMA_IF_TYPE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x11, _OCRDMA_IF_TYPE_SHIFT@GOTPAGE
Lloh15:
	ldr	x11, [x11, _OCRDMA_IF_TYPE_SHIFT@GOTPAGEOFF]
	and	w8, w8, w9
Lloh16:
	ldr	w9, [x11]
	asr	w8, w8, w9
Lloh17:
	adrp	x9, _OCRDMA_ASPEED_SUPP_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OCRDMA_ASPEED_SUPP_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w9, w9, w10
	stp	w8, w9, [x19, #4]
Lloh20:
	adrp	x8, _OCRDMA_FSPEED_SUPP_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OCRDMA_FSPEED_SUPP_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	and	w8, w8, w10
Lloh23:
	adrp	x9, _OCRDMA_FSPEED_SUPP_SHIFT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _OCRDMA_FSPEED_SUPP_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19, #12]
LBB0_3:
	mov	x0, x20
	bl	_kfree
	b	LBB0_5
LBB0_4:
	neg	w21, w21
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCRDMA_CMD_PHY_DETAILS,4,2     ; @OCRDMA_CMD_PHY_DETAILS
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ; @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_PHY_TYPE_MASK,4,2       ; @OCRDMA_PHY_TYPE_MASK
	.comm	_OCRDMA_IF_TYPE_MASK,4,2        ; @OCRDMA_IF_TYPE_MASK
	.comm	_OCRDMA_IF_TYPE_SHIFT,4,2       ; @OCRDMA_IF_TYPE_SHIFT
	.comm	_OCRDMA_ASPEED_SUPP_MASK,4,2    ; @OCRDMA_ASPEED_SUPP_MASK
	.comm	_OCRDMA_FSPEED_SUPP_MASK,4,2    ; @OCRDMA_FSPEED_SUPP_MASK
	.comm	_OCRDMA_FSPEED_SUPP_SHIFT,4,2   ; @OCRDMA_FSPEED_SUPP_SHIFT
	.no_dead_strip	_ocrdma_mbx_get_phy_info
.subsections_via_symbols
