	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_setpmkid_cmd        ## -- Begin function ath6kl_wmi_setpmkid_cmd
	.p2align	4, 0x90
_ath6kl_wmi_setpmkid_cmd:               ## @ath6kl_wmi_setpmkid_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.3:
	movl	%r8d, %ebx
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rdi, %r15
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	$12, %edi
	callq	_ath6kl_wmi_get_new_buf
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	(%rax), %rcx
	movl	8(%rcx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movq	%rcx, %r14
	callq	_memcpy
	movl	4(%r14), %edi
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_PMKID_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_9:
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_PMKID_DISABLE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_WMI_SET_PMKID_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NO_SYNC_WMIFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_wmi_cmd_send            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_PMKID_ENABLE,4,2               ## @PMKID_ENABLE
	.comm	_PMKID_DISABLE,4,2              ## @PMKID_DISABLE
	.comm	_WMI_SET_PMKID_CMDID,4,2        ## @WMI_SET_PMKID_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ## @NO_SYNC_WMIFLAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_setpmkid_cmd        ; -- Begin function ath6kl_wmi_setpmkid_cmd
	.p2align	2
_ath6kl_wmi_setpmkid_cmd:               ; @ath6kl_wmi_setpmkid_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	x2, LBB0_3
; %bb.1:
	mov	x23, x4
	mov	x22, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	cbnz	x3, LBB0_5
; %bb.2:
	cbz	w23, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	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
LBB0_5:
	mov	w0, #12
	bl	_ath6kl_wmi_get_new_buf
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
	ldr	x25, [x0]
	ldr	w0, [x25, #8]
Lloh2:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x24
	bl	_memcpy
	ldr	w0, [x25, #4]
	cbz	w23, LBB0_9
; %bb.7:
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
Lloh5:
	adrp	x8, _PMKID_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PMKID_ENABLE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh9:
	adrp	x8, _PMKID_DISABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PMKID_DISABLE@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x25]
Lloh11:
	adrp	x8, _WMI_SET_PMKID_CMDID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WMI_SET_PMKID_CMDID@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _NO_SYNC_WMIFLAG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NO_SYNC_WMIFLAG@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_PMKID_ENABLE,4,2               ; @PMKID_ENABLE
	.comm	_PMKID_DISABLE,4,2              ; @PMKID_DISABLE
	.comm	_WMI_SET_PMKID_CMDID,4,2        ; @WMI_SET_PMKID_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ; @NO_SYNC_WMIFLAG
.subsections_via_symbols
