	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qtnf_cmd_send_with_reply
_qtnf_cmd_send_with_reply:              ## @qtnf_cmd_send_with_reply
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movq	(%rsi), %r14
	movl	12(%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movl	4(%r14), %r12d
	movl	8(%r14), %r15d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, (%r14)
	movl	%r12d, %r14d
	movq	%r13, %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movq	%r13, %rcx
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_qtnf_fw_is_up
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_QLINK_CMD_FW_INIT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_pr_warn
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_3:
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_qtnf_trans_send_cmd_with_resp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r13d
	xorl	%ecx, %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_5:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	jmp	LBB0_8
LBB0_7:
	movl	$1, %edi
LBB0_8:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_13
LBB0_10:
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movq	%r13, %r8
	callq	_qtnf_cmd_check_reply_header
	testl	%eax, %eax
	je	LBB0_20
## %bb.11:
	movl	%eax, %r13d
LBB0_12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_13:
	testq	%rbx, %rbx
	je	LBB0_15
LBB0_14:
	movq	-56(%rbp), %rax
	movq	%rax, (%rbx)
	testl	%r13d, %r13d
	je	LBB0_16
	jmp	LBB0_18
LBB0_15:
	movq	%rcx, %rbx
	movq	-56(%rbp), %rdi
	callq	_consume_skb
	movq	%rbx, %rcx
	testl	%r13d, %r13d
	jne	LBB0_18
LBB0_16:
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	movl	(%rcx), %edi
	callq	_le16_to_cpu
	movq	%rax, %rdi
	callq	_qtnf_cmd_resp_result_decode
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	_pr_warn
LBB0_19:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.21:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_13
## %bb.22:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %edi
	movq	%rax, %r13
	callq	_le16_to_cpu
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, (%r13)
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIF%u.%u cmd=0x%.4X\n"

	.comm	_QLINK_CMD_FW_INIT,8,3          ## @QLINK_CMD_FW_INIT
L_.str.1:                               ## @.str.1
	.asciz	"VIF%u.%u: drop cmd 0x%.4X in fw state %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.2:                               ## @.str.2
	.asciz	"VIF%u.%u: cmd 0x%.4X failed: %d\n"

	.no_dead_strip	_qtnf_cmd_send_with_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtnf_cmd_send_with_reply
_qtnf_cmd_send_with_reply:              ; @qtnf_cmd_send_with_reply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x24, x3
	mov	x22, x2
	mov	x25, x1
	mov	x26, x0
	str	xzr, [sp, #8]
	ldr	x27, [x1]
	ldr	w0, [x27, #12]
	bl	_le16_to_cpu
	mov	x19, x0
	ldp	w21, w20, [x27, #4]
	ldr	w0, [x25, #8]
	bl	_cpu_to_le16
	str	w0, [x27]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_pr_debug
	mov	x0, x26
	bl	_qtnf_fw_is_up
	cbnz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _QLINK_CMD_FW_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QLINK_CMD_FW_INIT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x19, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	w4, [x26]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_pr_warn
	mov	x0, x25
	bl	_dev_kfree_skb
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_16
LBB0_3:
	add	x2, sp, #8
	mov	x0, x26
	mov	x1, x25
	bl	_qtnf_trans_send_cmd_with_resp
	cbz	w0, LBB0_5
; %bb.4:
	mov	x25, x0
	mov	x26, #0
	b	LBB0_10
LBB0_5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_9
LBB0_7:
	mov	x26, #0
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_10
LBB0_8:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_7
LBB0_9:
	ldr	x8, [sp, #8]
	ldr	x26, [x8]
	mov	x0, x26
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x24
	bl	_qtnf_cmd_check_reply_header
	mov	x25, x0
	cbz	w0, LBB0_17
LBB0_10:
	cbz	x22, LBB0_12
LBB0_11:
	ldr	x8, [sp, #8]
	str	x8, [x22]
	cbz	w25, LBB0_13
	b	LBB0_15
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_consume_skb
	cbnz	w25, LBB0_15
LBB0_13:
	cbz	x26, LBB0_15
; %bb.14:
	ldr	w0, [x26]
	bl	_le16_to_cpu
	bl	_qtnf_cmd_resp_result_decode
	mov	x25, x0
	b	LBB0_16
LBB0_15:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	mov	x4, x25
	bl	_pr_warn
LBB0_16:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	cbz	x22, LBB0_10
; %bb.18:
	cbz	x23, LBB0_10
; %bb.19:
	ldr	w0, [x26, #4]
	bl	_le16_to_cpu
	mov	w25, #0
	sub	x8, x0, x24
	str	x8, [x23]
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIF%u.%u cmd=0x%.4X\n"

	.comm	_QLINK_CMD_FW_INIT,8,3          ; @QLINK_CMD_FW_INIT
l_.str.1:                               ; @.str.1
	.asciz	"VIF%u.%u: drop cmd 0x%.4X in fw state %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.2:                               ; @.str.2
	.asciz	"VIF%u.%u: cmd 0x%.4X failed: %d\n"

	.no_dead_strip	_qtnf_cmd_send_with_reply
.subsections_via_symbols
