	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_change_sta       ## -- Begin function qtnf_cmd_send_change_sta
	.p2align	4, 0x90
_qtnf_cmd_send_change_sta:              ## @qtnf_cmd_send_change_sta
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	movl	12(%r13), %esi
	movq	_QLINK_CMD_CHANGE_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_lock
	movq	(%r14), %rbx
	movl	24(%rbx), %edi
	movq	%r12, %rsi
	callq	_ether_addr_copy
	movl	4(%r15), %edi
	callq	_qtnf_encode_sta_flags
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	(%r15), %edi
	callq	_qtnf_encode_sta_flags
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movl	8(%r13), %esi
	cmpl	$129, %esi
	je	LBB0_3
## %bb.4:
	cmpl	$128, %esi
	jne	LBB0_9
## %bb.5:
	movq	_QLINK_IFTYPE_STATION@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_QLINK_IFTYPE_AP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	(%r13), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_qtnf_cmd_send
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_unlock
LBB0_8:
	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_CHANGE_STA,4,2       ## @QLINK_CMD_CHANGE_STA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLINK_IFTYPE_AP,4,2            ## @QLINK_IFTYPE_AP
	.comm	_QLINK_IFTYPE_STATION,4,2       ## @QLINK_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported iftype %d\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_send_change_sta       ; -- Begin function qtnf_cmd_send_change_sta
	.p2align	2
_qtnf_cmd_send_change_sta:              ; @qtnf_cmd_send_change_sta
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x8, _QLINK_CMD_CHANGE_STA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLINK_CMD_CHANGE_STA@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #32
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_qtnf_bus_lock
	ldr	x23, [x20]
	ldr	w0, [x23, #24]
	mov	x1, x22
	bl	_ether_addr_copy
	ldr	w0, [x21, #4]
	bl	_qtnf_encode_sta_flags
	bl	_cpu_to_le32
	str	x0, [x23, #16]
	ldr	w0, [x21]
	bl	_qtnf_encode_sta_flags
	bl	_cpu_to_le32
	str	x0, [x23, #8]
	ldr	w1, [x19, #8]
	cmp	w1, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #128
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _QLINK_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLINK_IFTYPE_STATION@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _QLINK_IFTYPE_AP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLINK_IFTYPE_AP@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x23]
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_qtnf_cmd_send
	mov	x20, x0
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_qtnf_bus_unlock
LBB0_9:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QLINK_CMD_CHANGE_STA,4,2       ; @QLINK_CMD_CHANGE_STA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLINK_IFTYPE_AP,4,2            ; @QLINK_IFTYPE_AP
	.comm	_QLINK_IFTYPE_STATION,4,2       ; @QLINK_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported iftype %d\n"

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