	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_get_weptxkey              ## -- Begin function wlan_get_weptxkey
	.p2align	4, 0x90
_wlan_get_weptxkey:                     ## @wlan_get_weptxkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -32(%rbp)
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_IEEE80211_IOC_WEPTXKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	leaq	-20(%rbp), %rdx
	leaq	-32(%rbp), %r8
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_wlan_ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	-20(%rbp), %eax
	movq	_IEEE80211_KEYIX_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leal	1(%rax), %eax
	cmovel	%r14d, %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_IOC_WEPTXKEY,4,2     ## @IEEE80211_IOC_WEPTXKEY
	.comm	_IEEE80211_KEYIX_NONE,4,2       ## @IEEE80211_KEYIX_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_get_weptxkey              ; -- Begin function wlan_get_weptxkey
	.p2align	2
_wlan_get_weptxkey:                     ; @wlan_get_weptxkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _IEEE80211_IOC_WEPTXKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_IOC_WEPTXKEY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x4, sp
	mov	x3, #0
	mov	w5, #0
	bl	_wlan_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	w0, #0
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _IEEE80211_KEYIX_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_KEYIX_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	csinc	w8, wzr, w8, eq
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_IOC_WEPTXKEY,4,2     ; @IEEE80211_IOC_WEPTXKEY
	.comm	_IEEE80211_KEYIX_NONE,4,2       ; @IEEE80211_KEYIX_NONE
.subsections_via_symbols
