	.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	_mutex_lock
	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
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$24, %esi
	callq	_dma_alloc_coherent
	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_10
## %bb.8:
	movq	-40(%rbp), %r15
	movl	112(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%r14)
	movl	108(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r14)
	movl	104(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r14)
	movl	100(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 16(%r14)
	movl	96(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 20(%r14)
	movq	%r14, %rdi
	callq	_BE2_chip
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_BE_SUPPORTED_SPEED_10GBPS@GOTPCREL(%rip), %rax
	movq	_BE_SUPPORTED_SPEED_1GBPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 16(%r14)
LBB0_10:
	movq	8(%r14), %rdi
	movq	-40(%rbp), %rdx
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %ecx
	callq	_dma_free_coherent
	jmp	LBB0_11
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
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_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_12:
	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
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory alloc failure\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BE_SUPPORTED_SPEED_10GBPS,4,2  ## @BE_SUPPORTED_SPEED_10GBPS
	.comm	_BE_SUPPORTED_SPEED_1GBPS,4,2   ## @BE_SUPPORTED_SPEED_1GBPS
.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_7
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_wrb_from_mccq
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	mov	w8, #24
	str	w8, [sp]
	ldr	x0, [x19, #8]
	mov	x8, sp
	orr	x2, x8, #0x4
Lloh4:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	w1, #24
	bl	_dma_alloc_coherent
	str	x0, [sp, #8]
	cbz	x0, LBB0_9
; %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_6
; %bb.4:
	ldr	x21, [sp, #8]
	ldr	w0, [x21, #112]
	bl	_le16_to_cpu
	str	x0, [x19, #40]
	ldr	w0, [x21, #108]
	bl	_le16_to_cpu
	str	x0, [x19, #32]
	ldr	w0, [x21, #104]
	bl	_le16_to_cpu
	str	x0, [x19, #24]
	ldr	w0, [x21, #100]
	bl	_le16_to_cpu
	str	w0, [x19, #16]
	ldr	w0, [x21, #96]
	bl	_le32_to_cpu
	str	w0, [x19, #20]
	mov	x0, x19
	bl	_BE2_chip
	cbz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _BE_SUPPORTED_SPEED_10GBPS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BE_SUPPORTED_SPEED_10GBPS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _BE_SUPPORTED_SPEED_1GBPS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BE_SUPPORTED_SPEED_1GBPS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_6:
	ldr	x0, [x19, #8]
	ldr	x2, [sp, #8]
	ldp	w1, w3, [sp]
	bl	_dma_free_coherent
	b	LBB0_11
LBB0_7:
Lloh13:
	adrp	x8, _EPERM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_8:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.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
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory alloc failure\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BE_SUPPORTED_SPEED_10GBPS,4,2  ; @BE_SUPPORTED_SPEED_10GBPS
	.comm	_BE_SUPPORTED_SPEED_1GBPS,4,2   ; @BE_SUPPORTED_SPEED_1GBPS
.subsections_via_symbols
