	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_driver_ndis_remove_key
_wpa_driver_ndis_remove_key:            ## @wpa_driver_ndis_remove_key
	.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
	movl	%r8d, %r12d
	movq	%rcx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_os_memset
	movl	$12, -56(%rbp)
	movl	%ebx, %eax
	orl	$1073741824, %eax               ## imm = 0x40000000
	testl	%r12d, %r12d
	cmovel	%ebx, %eax
	movl	%eax, -52(%rbp)
	movl	-48(%rbp), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_os_memcpy
	movq	_OID_802_11_REMOVE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	-56(%rbp), %rdx
	movl	$12, %ecx
	callq	_ndis_set_oid
	movl	%eax, %r13d
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	movl	%ebx, -44(%rbp)
	movq	_OID_802_11_REMOVE_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_ndis_set_oid
	movl	%eax, %r15d
	shrl	$31, %r15d
LBB0_2:
	testl	%r13d, %r13d
	sets	%al
	andb	%r15b, %al
	movzbl	%al, %eax
	negl	%eax
	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	_OID_802_11_REMOVE_KEY,4,2      ## @OID_802_11_REMOVE_KEY
	.comm	_OID_802_11_REMOVE_WEP,4,2      ## @OID_802_11_REMOVE_WEP
	.no_dead_strip	_wpa_driver_ndis_remove_key
.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_remove_key
_wpa_driver_ndis_remove_key:            ; @wpa_driver_ndis_remove_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x4
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
	mov	w23, #12
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_os_memset
	orr	w8, w20, #0x40000000
	cmp	w22, #0
	csel	w8, w20, w8, eq
	stp	w23, w8, [sp, #16]
	ldr	w0, [sp, #24]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_os_memcpy
Lloh3:
	adrp	x8, _OID_802_11_REMOVE_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OID_802_11_REMOVE_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #12
	bl	_ndis_set_oid
	mov	x21, x0
	mov	w8, #0
	cbnz	w22, LBB0_2
; %bb.1:
	str	w20, [sp, #12]
Lloh6:
	adrp	x8, _OID_802_11_REMOVE_WEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OID_802_11_REMOVE_WEP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #4
	bl	_ndis_set_oid
	lsr	w8, w0, #31
LBB0_2:
	cmp	w21, #0
	cset	w9, lt
	and	w8, w9, w8
	sbfx	w0, w8, #0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_OID_802_11_REMOVE_KEY,4,2      ; @OID_802_11_REMOVE_KEY
	.comm	_OID_802_11_REMOVE_WEP,4,2      ; @OID_802_11_REMOVE_WEP
	.no_dead_strip	_wpa_driver_ndis_remove_key
.subsections_via_symbols
