	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_phy_info            ## -- Begin function be_cmd_get_phy_info
	.p2align	4, 0x90
_be_cmd_get_phy_info:                   ## @be_cmd_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_OPCODE_COMMON_GET_PHY_DETAILS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_be_cmd_allowed
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r14, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movl	$24, -48(%rbp)
	movq	8(%r14), %rdi
	leaq	-44(%rbp), %rdx
	movl	$24, %esi
	callq	_pci_alloc_consistent
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	addq	$20, %rax
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	-48(%rbp), %r9
	movq	%rax, %rdi
	movl	$24, %ecx
	movq	%rbx, %r8
	callq	_be_wrb_cmd_hdr_prepare
	movq	%r14, %rdi
	callq	_be_mcc_notify_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	-40(%rbp), %r15
	movl	112(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 48(%r14)
	movl	108(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%r14)
	movl	104(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r14)
	movl	100(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r14)
	movl	96(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 16(%r14)
LBB0_9:
	movq	8(%r14), %rdi
	movq	-40(%rbp), %rdx
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %ecx
	callq	_pci_free_consistent
	jmp	LBB0_10
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPCODE_COMMON_GET_PHY_DETAILS,4,2 ## @OPCODE_COMMON_GET_PHY_DETAILS
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory alloc failure\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_phy_info            ; -- Begin function be_cmd_get_phy_info
	.p2align	2
_be_cmd_get_phy_info:                   ; @be_cmd_get_phy_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _OPCODE_COMMON_GET_PHY_DETAILS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _OPCODE_COMMON_GET_PHY_DETAILS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_be_cmd_allowed
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_wrb_from_mccq
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	mov	w8, #24
	str	w8, [sp]
	ldr	x0, [x19, #8]
	mov	x8, sp
	orr	x2, x8, #0x4
	mov	w1, #24
	bl	_pci_alloc_consistent
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.3:
	add	x0, x0, #20
	ldr	w1, [x22]
	ldr	w2, [x21]
	mov	x5, sp
	mov	w3, #24
	mov	x4, x20
	bl	_be_wrb_cmd_hdr_prepare
	mov	x0, x19
	bl	_be_mcc_notify_wait
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x21, [sp, #8]
	ldr	w0, [x21, #112]
	bl	_le16_to_cpu
	str	x0, [x19, #48]
	ldr	w0, [x21, #108]
	bl	_le16_to_cpu
	str	x0, [x19, #40]
	ldr	w0, [x21, #104]
	bl	_le16_to_cpu
	str	x0, [x19, #32]
	ldr	w0, [x21, #100]
	bl	_le16_to_cpu
	str	x0, [x19, #24]
	ldr	w0, [x21, #96]
	bl	_le32_to_cpu
	str	w0, [x19, #16]
LBB0_5:
	ldr	x0, [x19, #8]
	ldr	x2, [sp, #8]
	ldp	w1, w3, [sp]
	bl	_pci_free_consistent
	b	LBB0_10
LBB0_6:
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_7:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OPCODE_COMMON_GET_PHY_DETAILS,4,2 ; @OPCODE_COMMON_GET_PHY_DETAILS
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory alloc failure\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
