	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_trans_send_cmd_with_resp  ## -- Begin function qtnf_trans_send_cmd_with_resp
	.p2align	4, 0x90
_qtnf_trans_send_cmd_with_resp:         ## @qtnf_trans_send_cmd_with_resp
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %r12
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_2:
	leaq	4(%r15), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movl	20(%r15), %edi
	incl	%edi
	movl	%edi, 20(%r15)
	callq	_cpu_to_le16
	movl	%eax, (%r12)
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movl	$1, (%r15)
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_qtnf_bus_control_tx
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	movl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, %r15d
	xorl	%ebx, %ebx
LBB0_12:
	testq	%rbx, %rbx
	setne	%al
	testl	%r15d, %r15d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	16(%r15), %rdi
	movq	_QTNF_DEF_SYNC_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wait_for_completion_interruptible_timeout
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_spin_lock
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%r15)
	movl	$0, (%r15)
	movq	%r13, %rdi
	callq	_spin_unlock
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.7:
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_8
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	sete	%al
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.10:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qtnfmac: response skb not empty\n"

	.comm	_QTNF_DEF_SYNC_CMD_TIMEOUT,4,2  ## @QTNF_DEF_SYNC_CMD_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"response timeout\n"

	.comm	_EINTR,4,2                      ## @EINTR
L_.str.2:                               ## @.str.2
	.asciz	"interrupted\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_trans_send_cmd_with_resp  ; -- Begin function qtnf_trans_send_cmd_with_resp
	.p2align	2
_qtnf_trans_send_cmd_with_resp:         ; @qtnf_trans_send_cmd_with_resp
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x20, [x1]
	cmp	x2, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_dev_kfree_skb
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_2:
	add	x23, x22, #4
	mov	x0, x23
	bl	_spin_lock
	ldr	w8, [x22, #20]
	add	w0, w8, #1
	str	w0, [x22, #20]
	bl	_cpu_to_le16
	str	w0, [x20]
	ldr	x0, [x22, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	mov	w25, #1
	str	w25, [x22]
	mov	x0, x23
	bl	_spin_unlock
	mov	x0, x22
	mov	x1, x21
	bl	_qtnf_bus_control_tx
	mov	x20, x0
	mov	x0, x21
	bl	_dev_kfree_skb
	mov	x0, x20
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, #0
LBB0_4:
	cmp	x21, #0
	ccmp	w25, #0, #4, ne
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_dev_kfree_skb
LBB0_6:
	mov	x0, x20
	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
LBB0_7:
	add	x0, x22, #16
Lloh5:
	adrp	x8, _QTNF_DEF_SYNC_CMD_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QTNF_DEF_SYNC_CMD_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_wait_for_completion_interruptible_timeout
	mov	x24, x0
	mov	x0, x23
	bl	_spin_lock
	ldr	w25, [x22]
	ldr	x21, [x22, #8]
	str	xzr, [x22, #8]
	str	wzr, [x22]
	mov	x0, x23
	bl	_spin_unlock
	cmp	x24, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.8:
	cbz	x24, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _EINTR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	b	LBB0_11
LBB0_10:
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_11:
	cmp	x21, #0
	ccmp	w25, #0, #0, ne
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.12:
	cbnz	w20, LBB0_4
; %bb.13:
Lloh18:
	adrp	x8, _EFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_14:
	mov	w20, #0
	str	x21, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qtnfmac: response skb not empty\n"

	.comm	_QTNF_DEF_SYNC_CMD_TIMEOUT,4,2  ; @QTNF_DEF_SYNC_CMD_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"response timeout\n"

	.comm	_EINTR,4,2                      ; @EINTR
l_.str.2:                               ; @.str.2
	.asciz	"interrupted\n"

.subsections_via_symbols
