	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_band_info_get         ## -- Begin function qtnf_cmd_band_info_get
	.p2align	4, 0x90
_qtnf_cmd_band_info_get:                ## @qtnf_cmd_band_info_get
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	(%rsi), %edi
	callq	_qlink_utils_band_cfg2q
	movq	%rax, %r15
	movl	4(%r12), %edi
	movq	_QLINK_CMD_BAND_INFO_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$8, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%r15, (%rax)
	movl	(%r12), %edi
	callq	_qtnf_bus_lock
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rsi
	movl	$8, %ecx
	callq	_qtnf_cmd_send_with_reply
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	movq	(%rsi), %rdx
	cmpq	%r15, %rdx
	jne	LBB0_4
## %bb.5:
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_qtnf_cmd_resp_fill_band_info
	movl	%eax, %r13d
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_7
LBB0_4:
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rcx
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_6:
	movl	(%r12), %edi
	callq	_qtnf_bus_unlock
	movq	-48(%rbp), %rdi
	callq	_consume_skb
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLINK_CMD_BAND_INFO_GET,4,2    ## @QLINK_CMD_BAND_INFO_GET
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC%u: reply band %u != cmd band %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_band_info_get         ; -- Begin function qtnf_cmd_band_info_get
	.p2align	2
_qtnf_cmd_band_info_get:                ; @qtnf_cmd_band_info_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp]
	ldr	w0, [x1]
	bl	_qlink_utils_band_cfg2q
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _QLINK_CMD_BAND_INFO_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLINK_CMD_BAND_INFO_GET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #8
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	str	x21, [x8]
	ldr	w0, [x19]
	bl	_qtnf_bus_lock
	ldr	w0, [x19]
	add	x2, sp, #8
	mov	x4, sp
	mov	x1, x22
	mov	w3, #8
	bl	_qtnf_cmd_send_with_reply
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x1, [x8]
	ldr	x2, [x1]
	cmp	x2, x21
	b.ne	LBB0_5
; %bb.3:
	ldr	x2, [sp]
	mov	x0, x20
	bl	_qtnf_cmd_resp_fill_band_info
	mov	x22, x0
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_5:
	ldr	w1, [x19, #4]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	bl	_pr_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	ldr	w0, [x19]
	bl	_qtnf_bus_unlock
	ldr	x0, [sp, #8]
	bl	_consume_skb
LBB0_7:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QLINK_CMD_BAND_INFO_GET,4,2    ; @QLINK_CMD_BAND_INFO_GET
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC%u: reply band %u != cmd band %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
