	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_broadcast_wep_set
_hostapd_broadcast_wep_set:             ## @hostapd_broadcast_wep_set
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	xorl	%r14d, %r14d
	cmpq	$0, 32(%rax)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rsi
	movslq	8(%rax), %r8
	movl	(%rax), %edi
	movq	_WPA_ALG_WEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_broadcast_ether_addr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	24(%rax), %rbx
	movl	(%rbx,%r8,4), %ebx
	movq	16(%rax), %rax
	movl	(%rax,%r8,4), %eax
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	$1, %r9d
	pushq	%rax
	pushq	%rbx
	pushq	$0
	pushq	$0
	callq	_hostapd_drv_set_key
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_ALG_WEP,4,2                ## @WPA_ALG_WEP
	.comm	_broadcast_ether_addr,4,2       ## @broadcast_ether_addr
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not set WEP encryption."

	.no_dead_strip	_hostapd_broadcast_wep_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_broadcast_wep_set
_hostapd_broadcast_wep_set:             ; @hostapd_broadcast_wep_set
	.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
	ldr	x8, [x0]
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x1, x0
	ldrsw	x4, [x8, #8]
Lloh0:
	adrp	x9, _WPA_ALG_WEP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_ALG_WEP@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh2:
	ldr	w2, [x9]
Lloh3:
	adrp	x9, _broadcast_ether_addr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _broadcast_ether_addr@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
	lsl	x9, x4, #2
	ldp	x8, x10, [x8, #16]
	ldr	w10, [x10, x9]
	ldr	w8, [x8, x9]
	stp	w10, w8, [sp]
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	w5, #1
	mov	x6, #0
	mov	w7, #0
	bl	_hostapd_drv_set_key
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_ALG_WEP,4,2                ; @WPA_ALG_WEP
	.comm	_broadcast_ether_addr,4,2       ; @broadcast_ether_addr
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not set WEP encryption."

	.no_dead_strip	_hostapd_broadcast_wep_set
.subsections_via_symbols
