	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_driver_ndis_set_pmkid
_wpa_driver_ndis_set_pmkid:             ## @wpa_driver_ndis_set_pmkid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edx
	cmpl	$2, %edx
	movl	$1, %ecx
	cmovgel	%edx, %ecx
	leal	-1(%rcx), %edx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, %edx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_5:
	movl	%ecx, %r13d
LBB0_6:
	leal	8(,%r13,4), %ebx
	movl	%ebx, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%rax)
	movl	%r13d, 4(%rax)
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rbx
	movl	%r13d, %r13d
	shlq	$3, %r13
	xorl	%r14d, %r14d
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rbx
	movq	8(%r12), %rax
	leaq	(%rax,%r14), %rdi
	addq	$4, %rdi
	movl	12(%rbx), %esi
	movl	(%r15), %edx
	callq	_os_memcpy
	movq	8(%r12), %rdi
	addq	%r14, %rdi
	movl	8(%rbx), %esi
	movl	$16, %edx
	callq	_os_memcpy
	addq	$8, %r14
	cmpq	%r14, %r13
	jne	LBB0_9
LBB0_10:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_wpa_hexdump
	movq	_OID_802_11_PMKID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_ndis_set_oid
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_os_free
	movl	%r14d, %eax
	jmp	LBB0_12
LBB0_11:
	movl	$-1, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NDIS: OID_802_11_PMKID"

	.comm	_OID_802_11_PMKID,4,2           ## @OID_802_11_PMKID
	.no_dead_strip	_wpa_driver_ndis_set_pmkid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_driver_ndis_set_pmkid
_wpa_driver_ndis_set_pmkid:             ; @wpa_driver_ndis_set_pmkid
	.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	x19, x0
	mov	x22, x0
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_4
; %bb.1:
	mov	w23, #0
	ldr	w9, [x19]
	cmp	w9, #1
	csinc	w9, w9, wzr, gt
	sub	w10, w9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, w23
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w23, #0
	b	LBB0_6
LBB0_5:
	mov	x23, x9
LBB0_6:
	lsl	w8, w23, #2
	add	w20, w8, #8
	mov	x0, x20
	bl	_os_zalloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x21, x0
	stp	w20, w23, [x0]
	cmp	w23, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x24, #0
	mov	w8, w23
	lsl	x23, x8, #3
Lloh0:
	adrp	x25, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ETH_ALEN@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x22]
	ldr	x8, [x21, #8]
	add	x8, x8, x24
	add	x0, x8, #4
	ldr	w1, [x22, #12]
	ldr	w2, [x25]
	bl	_os_memcpy
	ldr	x8, [x21, #8]
	add	x0, x8, x24
	ldr	w1, [x22, #8]
	mov	w2, #16
	bl	_os_memcpy
	add	x24, x24, #8
	cmp	x23, x24
	b.ne	LBB0_9
LBB0_10:
Lloh2:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_hexdump
Lloh7:
	adrp	x8, _OID_802_11_PMKID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OID_802_11_PMKID@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_ndis_set_oid
	mov	x19, x0
	mov	x0, x21
	bl	_os_free
	mov	x0, x19
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NDIS: OID_802_11_PMKID"

	.comm	_OID_802_11_PMKID,4,2           ; @OID_802_11_PMKID
	.no_dead_strip	_wpa_driver_ndis_set_pmkid
.subsections_via_symbols
