	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_wowlan_set       ## -- Begin function qtnf_cmd_send_wowlan_set
	.p2align	4, 0x90
_qtnf_cmd_send_wowlan_set:              ## @qtnf_cmd_send_wowlan_set
	.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, %rbx
	movq	8(%rdi), %rax
	movq	8(%rax), %r14
	movl	(%rax), %eax
	movl	(%rdi), %esi
	movq	_QLINK_CMD_WOWLAN_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_qtnf_bus_lock
	movq	(%r15), %r13
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.4:
	cmpq	$0, 24(%rbx)
	movl	$0, %eax
	je	LBB0_6
## %bb.5:
	movq	_QLINK_WOWLAN_TRIG_DISCONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movq	_QLINK_WOWLAN_TRIG_MAGIC_PKT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_8:
	orl	%eax, %r12d
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.9:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	_QLINK_WOWLAN_TRIG_PATTERN_PKT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r12d
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.11:
	movq	_QTN_TLV_ID_WOWLAN_PATTERN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%r15, %rdi
	callq	_qtnf_cmd_skb_put_tlv_arr
	cmpl	$2, (%rbx)
	jl	LBB0_15
## %bb.12:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	_QTN_TLV_ID_WOWLAN_PATTERN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax,%r13,8), %ecx
	movl	4(%rax,%r13,8), %edx
	movq	%r15, %rdi
	callq	_qtnf_cmd_skb_put_tlv_arr
	incq	%r13
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jl	LBB0_13
## %bb.14:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_15:
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qtnf_cmd_send
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_qtnf_bus_unlock
	movl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLINK_CMD_WOWLAN_SET,4,2       ## @QLINK_CMD_WOWLAN_SET
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLINK_WOWLAN_TRIG_DISCONNECT,4,2 ## @QLINK_WOWLAN_TRIG_DISCONNECT
	.comm	_QLINK_WOWLAN_TRIG_MAGIC_PKT,4,2 ## @QLINK_WOWLAN_TRIG_MAGIC_PKT
	.comm	_QLINK_WOWLAN_TRIG_PATTERN_PKT,4,2 ## @QLINK_WOWLAN_TRIG_PATTERN_PKT
	.comm	_QTN_TLV_ID_WOWLAN_PATTERN,4,2  ## @QTN_TLV_ID_WOWLAN_PATTERN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_wowlan_set       ; -- Begin function qtnf_cmd_send_wowlan_set
	.p2align	2
_qtnf_cmd_send_wowlan_set:              ; @qtnf_cmd_send_wowlan_set
	.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	x21, x1
	ldr	x8, [x0, #8]
	ldr	x19, [x8, #8]
	ldr	w8, [x8]
	ldr	w1, [x0]
Lloh0:
	adrp	x9, _QLINK_CMD_WOWLAN_SET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLINK_CMD_WOWLAN_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x8
	mov	w3, #4
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_qtnf_bus_lock
	ldr	x23, [x20]
	cbz	x21, LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _QLINK_WOWLAN_TRIG_DISCONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLINK_WOWLAN_TRIG_DISCONNECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	x10, x9, [x21, #16]
	cmp	x9, #0
Lloh6:
	adrp	x9, _QLINK_WOWLAN_TRIG_MAGIC_PKT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QLINK_WOWLAN_TRIG_MAGIC_PKT@GOTPAGEOFF]
	csel	w8, wzr, w8, eq
Lloh8:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w22, w9, w8
	ldr	w9, [x21]
	cbz	w9, LBB0_10
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
; %bb.4:
Lloh9:
	adrp	x10, _QLINK_WOWLAN_TRIG_PATTERN_PKT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _QLINK_WOWLAN_TRIG_PATTERN_PKT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w22, w10, w22
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.5:
Lloh12:
	adrp	x24, _QTN_TLV_ID_WOWLAN_PATTERN@GOTPAGE
Lloh13:
	ldr	x24, [x24, _QTN_TLV_ID_WOWLAN_PATTERN@GOTPAGEOFF]
	ldr	w1, [x24]
	ldp	w3, w2, [x8]
	mov	x0, x20
	bl	_qtnf_cmd_skb_put_tlv_arr
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.6:
	mov	x25, #0
	mov	w26, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w1, [x24]
	add	x8, x8, x25
	ldp	w3, w2, [x8, #8]
	mov	x0, x20
	bl	_qtnf_cmd_skb_put_tlv_arr
	add	x26, x26, #1
	ldrsw	x8, [x21]
	add	x25, x25, #8
	cmp	x26, x8
	b.lt	LBB0_7
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	bl	_cpu_to_le32
	str	w0, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_qtnf_cmd_send
	mov	x20, x0
	mov	x0, x19
	bl	_qtnf_bus_unlock
	mov	x0, x20
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_QLINK_CMD_WOWLAN_SET,4,2       ; @QLINK_CMD_WOWLAN_SET
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLINK_WOWLAN_TRIG_DISCONNECT,4,2 ; @QLINK_WOWLAN_TRIG_DISCONNECT
	.comm	_QLINK_WOWLAN_TRIG_MAGIC_PKT,4,2 ; @QLINK_WOWLAN_TRIG_MAGIC_PKT
	.comm	_QLINK_WOWLAN_TRIG_PATTERN_PKT,4,2 ; @QLINK_WOWLAN_TRIG_PATTERN_PKT
	.comm	_QTN_TLV_ID_WOWLAN_PATTERN,4,2  ; @QTN_TLV_ID_WOWLAN_PATTERN
.subsections_via_symbols
