	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lancer_cmd_get_pport_stats     ## -- Begin function lancer_cmd_get_pport_stats
	.p2align	4, 0x90
_lancer_cmd_get_pport_stats:            ## @lancer_cmd_get_pport_stats
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	_OPCODE_ETH_GET_PPORT_STATS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_CMD_SUBSYSTEM_ETH@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_be_cmd_allowed
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rcx
	movq	8(%r15), %r12
	leaq	16(%r12), %rdi
	movl	(%r13), %esi
	movl	(%rcx), %edx
	movl	(%r15), %ecx
	movq	%rax, %r8
	movq	%r15, %r9
	callq	_be_wrb_cmd_hdr_prepare
	movl	8(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%r12)
	movq	$0, (%r12)
	movq	%rbx, %rdi
	callq	_be_mcc_notify
	movl	$1, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPCODE_ETH_GET_PPORT_STATS,4,2 ## @OPCODE_ETH_GET_PPORT_STATS
	.comm	_CMD_SUBSYSTEM_ETH,4,2          ## @CMD_SUBSYSTEM_ETH
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lancer_cmd_get_pport_stats     ; -- Begin function lancer_cmd_get_pport_stats
	.p2align	2
_lancer_cmd_get_pport_stats:            ; @lancer_cmd_get_pport_stats
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _OPCODE_ETH_GET_PPORT_STATS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OPCODE_ETH_GET_PPORT_STATS@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _CMD_SUBSYSTEM_ETH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CMD_SUBSYSTEM_ETH@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_be_cmd_allowed
	cbz	w0, LBB0_3
; %bb.1:
	add	x19, x20, #4
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x20
	bl	_wrb_from_mccq
	cbz	x0, LBB0_4
; %bb.2:
	mov	x4, x0
	ldr	x24, [x21, #8]
	add	x0, x24, #16
	ldr	w1, [x23]
	ldr	w2, [x22]
	ldr	w3, [x21]
	mov	x5, x21
	bl	_be_wrb_cmd_hdr_prepare
	ldr	w0, [x20, #8]
	bl	_cpu_to_le16
	str	w0, [x24, #8]
	str	xzr, [x24]
	mov	x0, x20
	bl	_be_mcc_notify
	mov	w21, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_6:
	mov	x0, x21
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OPCODE_ETH_GET_PPORT_STATS,4,2 ; @OPCODE_ETH_GET_PPORT_STATS
	.comm	_CMD_SUBSYSTEM_ETH,4,2          ; @CMD_SUBSYSTEM_ETH
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
