	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wmi_sync_point
_ath6kl_wmi_sync_point:                 ## @ath6kl_wmi_sync_point
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WMM_NUM_AC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	movq	%r12, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	shll	$4, %r12d
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movl	(%r13), %edx
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
LBB0_3:
	testb	$1, %al
	je	LBB0_6
## %bb.4:
	btl	%ecx, %edx
	jae	LBB0_6
## %bb.5:
	movslq	%r14d, %rax
	incl	%r14d
	shlq	$4, %rax
	movl	%ecx, (%r15,%rax)
LBB0_6:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	$4, %edi
	callq	_ath6kl_wmi_get_new_buf
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ecx
	movl	%ecx, (%rax)
	movl	%r14d, %r12d
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.8:
	movq	%r12, %rbx
	shlq	$4, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_ath6kl_buf_alloc
	movq	%rax, 8(%r15,%r13)
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$16, %r13
	cmpq	%r13, %rbx
	jne	LBB0_9
	jmp	LBB0_20
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_24
LBB0_12:
	movl	%eax, %esi
	andl	$-2, %esi
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	addl	$2, %ecx
	cmpl	%ecx, %esi
	je	LBB0_3
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %edx
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	%r14d, %rdi
	incl	%r14d
	shlq	$4, %rdi
	movl	%ecx, (%r15,%rdi)
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%edx, %edi
	shrl	%cl, %edi
	testb	$2, %dil
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	leal	1(%rcx), %edi
	movslq	%r14d, %rbx
	incl	%r14d
	shlq	$4, %rbx
	movl	%edi, (%r15,%rbx)
	jmp	LBB0_13
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.19:
	negl	%r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	jmp	LBB0_21
LBB0_20:
	movq	_WMI_SYNCHRONIZE_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NO_SYNC_WMIFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_ath6kl_wmi_cmd_send
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_26
LBB0_21:
	testl	%r14d, %r14d
	jle	LBB0_24
## %bb.22:
	shlq	$4, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15,%rbx), %rdi
	callq	_dev_kfree_skb
	addq	$16, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_23
	jmp	LBB0_24
LBB0_26:
	testl	%r14d, %r14d
	jle	LBB0_32
## %bb.27:
	movq	%r12, %rax
	shlq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	$0, 8(%r15,%r13)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	4(%rbx), %edi
	movl	(%r15,%r13), %esi
	callq	_ath6kl_ac2_endpoint_id
	movq	8(%r15,%r13), %rsi
	movq	%rbx, %rdi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_ath6kl_wmi_data_sync_send
	movq	$0, 8(%r15,%r13)
	testl	%eax, %eax
	jne	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	addq	$16, %r13
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_28
LBB0_32:
	xorl	%r13d, %r13d
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.25:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_34:
	movl	%eax, %r13d
	jmp	LBB0_21
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WMM_NUM_AC,4,2                 ## @WMM_NUM_AC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_SYNCHRONIZE_CMDID,4,2      ## @WMI_SYNCHRONIZE_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ## @NO_SYNC_WMIFLAG
	.no_dead_strip	_ath6kl_wmi_sync_point
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wmi_sync_point
_ath6kl_wmi_sync_point:                 ; @ath6kl_wmi_sync_point
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _WMM_NUM_AC@GOTPAGE
Lloh4:
	ldr	x23, [x23, _WMM_NUM_AC@GOTPAGEOFF]
	ldr	w12, [x23]
	lsl	x8, x12, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x8
	mov	sp, x19
	lsl	w2, w12, #4
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	add	x22, x21, #8
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w24, #0
	mov	w9, #0
	ldr	w10, [x21]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #1
	cmp	w8, w9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w10, w9
	tbz	w11, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x11, x24, #4, #32
	add	w12, w24, #1
	str	w9, [x19, x11]
	mov	x24, x12
	b	LBB0_2
LBB0_5:
	mov	w24, #0
LBB0_6:
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	w0, #4
	bl	_ath6kl_wmi_get_new_buf
	cbz	x0, LBB0_11
; %bb.7:
	mov	x23, x0
	ldr	x8, [x0]
	ldr	w9, [x21]
	str	w9, [x8]
	mov	w25, w24
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.8:
	add	x22, x19, #8
	mov	x26, x25
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_ath6kl_buf_alloc
	str	x0, [x22]
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #16
	subs	x26, x26, #1
	b.ne	LBB0_9
	b	LBB0_14
LBB0_11:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_24
LBB0_12:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.13:
	neg	w22, w8
	mov	x0, x23
	bl	_dev_kfree_skb
	b	LBB0_15
LBB0_14:
Lloh13:
	adrp	x8, _WMI_SYNCHRONIZE_CMDID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WMI_SYNCHRONIZE_CMDID@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x8, _NO_SYNC_WMIFLAG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NO_SYNC_WMIFLAG@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_ath6kl_wmi_cmd_send
	mov	x22, x0
	cbz	w0, LBB0_18
LBB0_15:
	cmp	w24, #1
	b.lt	LBB0_24
; %bb.16:
	add	x19, x19, #8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19], #16
	bl	_dev_kfree_skb
	subs	x25, x25, #1
	b.ne	LBB0_17
	b	LBB0_24
LBB0_18:
	cmp	w24, #1
	b.lt	LBB0_23
; %bb.19:
	add	x23, x19, #8
	mov	x26, x25
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w0, [x21, #4]
	ldur	w1, [x23, #-8]
	bl	_ath6kl_ac2_endpoint_id
	mov	x2, x0
	ldr	x1, [x23]
	mov	x0, x21
	mov	x3, x20
	bl	_ath6kl_wmi_data_sync_send
	str	xzr, [x23]
	cbnz	w0, LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x23, x23, #16
	subs	x26, x26, #1
	b.ne	LBB0_20
LBB0_23:
	mov	w22, #0
LBB0_24:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.25:
	mov	x0, x22
	sub	sp, x29, #64
	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_26:
	mov	w22, #0
	b	LBB0_15
LBB0_27:
	mov	x22, x0
	b	LBB0_15
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_WMM_NUM_AC,4,2                 ; @WMM_NUM_AC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_SYNCHRONIZE_CMDID,4,2      ; @WMI_SYNCHRONIZE_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ; @NO_SYNC_WMIFLAG
	.no_dead_strip	_ath6kl_wmi_sync_point
.subsections_via_symbols
