	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_read_port_transceiver_data ## -- Begin function be_cmd_read_port_transceiver_data
	.p2align	4, 0x90
_be_cmd_read_port_transceiver_data:     ## @be_cmd_read_port_transceiver_data
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TR_PAGE_A2@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$32, -56(%rbp)
	movq	8(%rdi), %rdi
	leaq	-52(%rbp), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$32, %esi
	callq	_dma_alloc_coherent
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	-48(%rbp), %r13
	leaq	24(%r13), %rdi
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_OPCODE_COMMON_READ_TRANSRECV_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	-56(%rbp), %ecx
	leaq	-56(%rbp), %r9
	movq	%rax, %r8
	callq	_be_wrb_cmd_hdr_prepare
	movq	(%r12), %rdi
	callq	_cpu_to_le32
	movq	%rax, 16(%r13)
	movq	%rbx, %rdi
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	movq	%r12, %rdi
	callq	_be_mcc_notify_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	movq	_PAGE_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	8(%r12), %rdi
	movq	-48(%rbp), %rdx
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %ecx
	callq	_dma_free_coherent
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TR_PAGE_A2,8,3                 ## @TR_PAGE_A2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory allocation failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_READ_TRANSRECV_DATA,4,2 ## @OPCODE_COMMON_READ_TRANSRECV_DATA
	.comm	_PAGE_DATA_LEN,4,2              ## @PAGE_DATA_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_read_port_transceiver_data ; -- Begin function be_cmd_read_port_transceiver_data
	.p2align	2
_be_cmd_read_port_transceiver_data:     ; @be_cmd_read_port_transceiver_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _TR_PAGE_A2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TR_PAGE_A2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	w8, #32
	str	w8, [sp]
	ldr	x0, [x0, #8]
	mov	x8, sp
	orr	x2, x8, #0x4
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	w1, #32
	bl	_dma_alloc_coherent
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.3:
	add	x21, x19, #16
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_wrb_from_mccq
	cbz	x0, LBB0_8
; %bb.4:
	mov	x4, x0
	ldr	x23, [sp, #8]
Lloh8:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
	add	x0, x23, #24
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _OPCODE_COMMON_READ_TRANSRECV_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPCODE_COMMON_READ_TRANSRECV_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [sp]
	mov	x5, sp
	bl	_be_wrb_cmd_hdr_prepare
	ldr	x0, [x19]
	bl	_cpu_to_le32
	str	x0, [x23, #16]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x23, #8]
	mov	x0, x19
	bl	_be_mcc_notify_wait
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _PAGE_DATA_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PAGE_DATA_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_memcpy
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19, #8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_8:
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x0, [x19, #8]
	ldr	x2, [sp, #8]
	ldp	w1, w3, [sp]
	bl	_dma_free_coherent
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TR_PAGE_A2,8,3                 ; @TR_PAGE_A2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory allocation failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_READ_TRANSRECV_DATA,4,2 ; @OPCODE_COMMON_READ_TRANSRECV_DATA
	.comm	_PAGE_DATA_LEN,4,2              ; @PAGE_DATA_LEN
.subsections_via_symbols
