	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_frame            ## -- Begin function qtnf_cmd_send_frame
	.p2align	4, 0x90
_qtnf_cmd_send_frame:                   ## @qtnf_cmd_send_frame
	.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	%r9, %r14
	movq	%r8, %r15
	movl	%edx, %r8d
	movq	%rdi, %r13
	leaq	24(%r9), %rax
	movq	_QTNF_MAX_CMD_BUF_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdi
	movq	(%r13), %rdx
	movl	4(%rdx), %ebx
	movl	8(%r13), %edx
	cmpq	%rdi, %rax
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	callq	_pr_warn
	movq	_E2BIG@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	_QLINK_CMD_SEND_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	movl	$24, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_lock
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r15
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, 16(%r15)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, (%r15)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_qtnf_cmd_skb_put_buffer
LBB0_8:
	movq	(%r13), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_qtnf_cmd_send
	movl	%eax, %r14d
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_unlock
	movl	%r14d, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QTNF_MAX_CMD_BUF_SIZE,4,2      ## @QTNF_MAX_CMD_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIF%u.%u: frame is too big: %zu\n"

	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_QLINK_CMD_SEND_FRAME,4,2       ## @QLINK_CMD_SEND_FRAME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_frame            ; -- Begin function qtnf_cmd_send_frame
	.p2align	2
_qtnf_cmd_send_frame:                   ; @qtnf_cmd_send_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x25, x1
Lloh0:
	adrp	x8, _QTNF_MAX_CMD_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QTNF_MAX_CMD_BUF_SIZE@GOTPAGEOFF]
	add	x9, x5, #24
Lloh2:
	ldrsw	x10, [x8]
	ldr	x8, [x0]
	ldr	w1, [x8, #4]
	ldr	w8, [x0, #8]
	cmp	x9, x10
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x8
	mov	x3, x20
	bl	_pr_warn
Lloh5:
	adrp	x8, _E2BIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x21, x4
	mov	x24, x3
	mov	x22, x2
	mov	x19, x0
Lloh7:
	adrp	x9, _QLINK_CMD_SEND_FRAME@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QLINK_CMD_SEND_FRAME@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x9]
	mov	x0, x1
	mov	x1, x8
	mov	w3, #24
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_qtnf_bus_lock
	ldr	x26, [x23]
	mov	x0, x25
	bl	_cpu_to_le32
	str	w0, [x26, #16]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [x26, #8]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x26]
	cbz	x21, LBB0_6
; %bb.4:
	cbz	x20, LBB0_6
; %bb.5:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_qtnf_cmd_skb_put_buffer
LBB0_6:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_qtnf_cmd_send
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_qtnf_bus_unlock
	mov	x0, x20
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QTNF_MAX_CMD_BUF_SIZE,4,2      ; @QTNF_MAX_CMD_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIF%u.%u: frame is too big: %zu\n"

	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_QLINK_CMD_SEND_FRAME,4,2       ; @QLINK_CMD_SEND_FRAME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
