	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wmi_send_action_cmd
_ath6kl_wmi_send_action_cmd:            ## @ath6kl_wmi_send_action_cmd
	.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
	testq	%r8, %r8
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	leaq	40(%r12), %rdi
	callq	_ath6kl_wmi_get_new_buf
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_kfree
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 8(%rax)
	movq	%r12, (%rax)
	movq	_ATH6KL_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	_ath6kl_dbg
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rbx
	movq	%r14, %rdi
	callq	_cpu_to_le32
	movq	%rax, 32(%rbx)
	movq	%r13, %rdi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movq	%r12, %rdi
	callq	_cpu_to_le16
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movq	_WMI_SEND_ACTION_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NO_SYNC_WMIFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_wmi_cmd_send            ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH6KL_DBG_WMI,4,2             ## @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send_action_cmd: id=%u freq=%u wait=%u len=%u\n"

	.comm	_WMI_SEND_ACTION_CMDID,4,2      ## @WMI_SEND_ACTION_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ## @NO_SYNC_WMIFLAG
	.no_dead_strip	_ath6kl_wmi_send_action_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wmi_send_action_cmd
_ath6kl_wmi_send_action_cmd:            ; @ath6kl_wmi_send_action_cmd
	.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
	cbz	x4, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x21, x6
	mov	x22, x5
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x6
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x26, x0
	add	x0, x21, #40
	bl	_ath6kl_wmi_get_new_buf
	cbz	x0, LBB0_5
; %bb.4:
	mov	x23, x0
	ldr	x0, [x20, #8]
	bl	_kfree
	mov	x0, x26
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	stp	x21, x26, [x20]
Lloh5:
	adrp	x8, _ATH6KL_DBG_WMI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH6KL_DBG_WMI@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	mov	x3, x24
	mov	x4, #0
	mov	x5, x21
	bl	_ath6kl_dbg
	ldr	x26, [x23]
	mov	x0, x25
	bl	_cpu_to_le32
	str	x0, [x26, #32]
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [x26, #24]
	mov	x0, #0
	bl	_cpu_to_le32
	str	x0, [x26, #16]
	mov	x0, x21
	bl	_cpu_to_le16
	str	w0, [x26, #8]
	ldr	x0, [x26]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
Lloh10:
	adrp	x8, _WMI_SEND_ACTION_CMDID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WMI_SEND_ACTION_CMDID@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _NO_SYNC_WMIFLAG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NO_SYNC_WMIFLAG@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	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
	b	_ath6kl_wmi_cmd_send
LBB0_5:
	mov	x0, x26
	bl	_kfree
LBB0_6:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH6KL_DBG_WMI,4,2             ; @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send_action_cmd: id=%u freq=%u wait=%u len=%u\n"

	.comm	_WMI_SEND_ACTION_CMDID,4,2      ; @WMI_SEND_ACTION_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ; @NO_SYNC_WMIFLAG
	.no_dead_strip	_ath6kl_wmi_send_action_cmd
.subsections_via_symbols
