	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_get_channel           ## -- Begin function qtnf_cmd_get_channel
	.p2align	4, 0x90
_qtnf_cmd_get_channel:                  ## @qtnf_cmd_get_channel
	.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, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rax), %r15
	movq	$0, -48(%rbp)
	movl	(%rax), %edi
	movl	8(%r12), %esi
	movq	_QLINK_CMD_CHAN_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_qtnf_bus_lock
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_qtnf_cmd_send_with_reply
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rax
	movq	(%rax), %r13
	movq	(%r12), %rdi
	callq	_priv_to_wiphy
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_qlink_chandef_q2cfg
LBB0_4:
	movq	%r15, %rdi
	callq	_qtnf_bus_unlock
	movq	-48(%rbp), %rdi
	callq	_consume_skb
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLINK_CMD_CHAN_GET,4,2         ## @QLINK_CMD_CHAN_GET
	.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_get_channel           ; -- Begin function qtnf_cmd_get_channel
	.p2align	2
_qtnf_cmd_get_channel:                  ; @qtnf_cmd_get_channel
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x19, [x8, #8]
	str	xzr, [sp, #8]
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
Lloh0:
	adrp	x8, _QLINK_CMD_CHAN_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLINK_CMD_CHAN_GET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #4
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	bl	_qtnf_bus_lock
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x22
	mov	w3, #4
	mov	x4, #0
	bl	_qtnf_cmd_send_with_reply
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x23, [x8]
	ldr	x0, [x21]
	bl	_priv_to_wiphy
	mov	x1, x23
	mov	x2, x20
	bl	_qlink_chandef_q2cfg
LBB0_3:
	mov	x0, x19
	bl	_qtnf_bus_unlock
	ldr	x0, [sp, #8]
	bl	_consume_skb
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QLINK_CMD_CHAN_GET,4,2         ; @QLINK_CMD_CHAN_GET
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
