	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_get_wepmode               ## -- Begin function wlan_get_wepmode
	.p2align	4, 0x90
_wlan_get_wepmode:                      ## @wlan_get_wepmode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	movq	$0, -24(%rbp)
	movl	24(%rdi), %edi
	movq	_IEEE80211_IOC_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	leaq	-24(%rbp), %r8
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_wlan_ioctl
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movl	-12(%rbp), %eax
	movq	_IEEE80211_WEP_NOSUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
LBB0_2:
	movl	$0, (%rbx)
	movq	_wlanWepMode_off@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	$0, 16(%rbx)
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_3:
	movl	$1, (%rbx)
	cmpl	$130, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.5:
	movq	_wlanWepMode_on@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_wlanWepMode_mixed@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_wlanWepMode_off@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_IOC_WEP,4,2          ## @IEEE80211_IOC_WEP
	.comm	_IEEE80211_WEP_NOSUP,4,2        ## @IEEE80211_WEP_NOSUP
	.comm	_wlanWepMode_off,8,3            ## @wlanWepMode_off
	.comm	_wlanWepMode_on,8,3             ## @wlanWepMode_on
	.comm	_wlanWepMode_mixed,8,3          ## @wlanWepMode_mixed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_get_wepmode               ; -- Begin function wlan_get_wepmode
	.p2align	2
_wlan_get_wepmode:                      ; @wlan_get_wepmode
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	str	xzr, [sp]
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _IEEE80211_IOC_WEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_IOC_WEP@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_2
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _IEEE80211_WEP_NOSUP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_WEP_NOSUP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	str	wzr, [x19]
Lloh6:
	adrp	x8, _wlanWepMode_off@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wlanWepMode_off@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x8, xzr, [x19, #8]
	mov	w0, #-1
	b	LBB0_9
LBB0_3:
	mov	w9, #1
	str	w9, [x19]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #0
Lloh9:
	adrp	x8, _wlanWepMode_on@GOTPAGE
Lloh10:
	ldr	x8, [x8, _wlanWepMode_on@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
Lloh11:
	adrp	x8, _wlanWepMode_mixed@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wlanWepMode_mixed@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
Lloh13:
	adrp	x8, _wlanWepMode_off@GOTPAGE
Lloh14:
	ldr	x8, [x8, _wlanWepMode_off@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_IOC_WEP,4,2          ; @IEEE80211_IOC_WEP
	.comm	_IEEE80211_WEP_NOSUP,4,2        ; @IEEE80211_WEP_NOSUP
	.comm	_wlanWepMode_off,8,3            ; @wlanWepMode_off
	.comm	_wlanWepMode_on,8,3             ; @wlanWepMode_on
	.comm	_wlanWepMode_mixed,8,3          ; @wlanWepMode_mixed
.subsections_via_symbols
