	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_driver_ndis_add_pmkid
_wpa_driver_ndis_add_pmkid:             ## @wpa_driver_ndis_add_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %r12
	movl	$-1, %eax
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.5:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r13
	testq	%r13, %r13
	je	LBB0_12
## %bb.6:
	movl	12(%r13), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r12, %rsi
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	(%r13), %r13
	testq	%r13, %r13
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	12(%r13), %edi
	movl	(%r15), %edx
	movq	%r12, %rsi
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$16, %edi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rax, %r13
	movl	12(%rax), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_os_memcpy
	movl	8(%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_os_memcpy
	jmp	LBB0_14
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movl	8(%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_os_memcpy
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.9:
	movq	(%r13), %rax
	movq	%rax, (%rbx)
LBB0_14:
	movq	8(%r14), %rax
	movq	%rax, (%r13)
	movq	%r13, 8(%r14)
LBB0_15:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_driver_ndis_set_pmkid      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_wpa_driver_ndis_add_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_add_pmkid
_wpa_driver_ndis_add_pmkid:             ; @wpa_driver_ndis_add_pmkid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldp	x21, x22, [x1]
	cmp	x22, #0
	ccmp	x21, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_9
; %bb.4:
	ldr	w0, [x20, #12]
Lloh0:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x1, x22
	bl	_os_memcmp
	cbz	x0, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x20
	ldr	x20, [x20]
	cbz	x20, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #12]
	ldr	w2, [x24]
	mov	x1, x22
	bl	_os_memcmp
	cbnz	x0, LBB0_5
	b	LBB0_12
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #16
	bl	_os_malloc
	cbz	x0, LBB0_15
; %bb.10:
	mov	x20, x0
	ldr	w0, [x0, #12]
Lloh2:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_os_memcpy
	ldr	w0, [x20, #8]
	mov	x1, x21
	mov	w2, #16
	bl	_os_memcpy
	b	LBB0_14
LBB0_11:
	mov	x23, #0
LBB0_12:
	ldr	w0, [x20, #8]
	mov	x1, x21
	mov	w2, #16
	bl	_os_memcpy
	cbz	x23, LBB0_15
; %bb.13:
	ldr	x8, [x20]
	str	x8, [x23]
LBB0_14:
	ldr	x8, [x19, #8]
	str	x8, [x20]
	str	x20, [x19, #8]
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_driver_ndis_set_pmkid
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_wpa_driver_ndis_add_pmkid
.subsections_via_symbols
