	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_set_wepmode               ## -- Begin function wlan_set_wepmode
	.p2align	4, 0x90
_wlan_set_wepmode:                      ## @wlan_set_wepmode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	$0, -16(%rbp)
	movl	$-1, %eax
	cmpl	$0, 8(%rdi)
	je	LBB0_8
## %bb.1:
	movl	(%rdi), %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$130, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$129, %ecx
	jne	LBB0_8
## %bb.4:
	movq	_IEEE80211_WEP_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_IEEE80211_WEP_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_IEEE80211_WEP_MIXED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	4(%rdi), %edi
	movq	_IEEE80211_IOC_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	leaq	-16(%rbp), %r8
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_wlan_ioctl
	sarq	$63, %rax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_WEP_OFF,4,2          ## @IEEE80211_WEP_OFF
	.comm	_IEEE80211_WEP_ON,4,2           ## @IEEE80211_WEP_ON
	.comm	_IEEE80211_WEP_MIXED,4,2        ## @IEEE80211_WEP_MIXED
	.comm	_IEEE80211_IOC_WEP,4,2          ## @IEEE80211_IOC_WEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_set_wepmode               ; -- Begin function wlan_set_wepmode
	.p2align	2
_wlan_set_wepmode:                      ; @wlan_set_wepmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	str	xzr, [sp]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _IEEE80211_WEP_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_WEP_OFF@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w0, #-1
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _IEEE80211_WEP_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_WEP_ON@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _IEEE80211_WEP_MIXED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IEEE80211_WEP_MIXED@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	stur	w8, [x29, #-4]
	ldr	w0, [x0, #4]
Lloh6:
	adrp	x8, _IEEE80211_IOC_WEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_IOC_WEP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	x2, x29, #4
	mov	x4, sp
	mov	x3, #0
	mov	w5, #1
	bl	_wlan_ioctl
	asr	x0, x0, #63
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_WEP_OFF,4,2          ; @IEEE80211_WEP_OFF
	.comm	_IEEE80211_WEP_ON,4,2           ; @IEEE80211_WEP_ON
	.comm	_IEEE80211_WEP_MIXED,4,2        ; @IEEE80211_WEP_MIXED
	.comm	_IEEE80211_IOC_WEP,4,2          ; @IEEE80211_IOC_WEP
.subsections_via_symbols
