	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_set_wds_encryption
_hostapd_set_wds_encryption:            ## @hostapd_set_wds_encryption
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	jne	LBB0_13
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_2
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	32(%rbx), %rax
	movq	(%rax), %r10
	testq	%r10, %r10
	je	LBB0_5
## %bb.3:
	movq	_WPA_ALG_WEP@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	cmpl	$0, 16(%rbx)
	movl	(%rax), %edx
	sete	%r9b
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_hostapd_drv_set_key
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.4:
	movq	32(%rbx), %rax
LBB0_5:
	movq	8(%rax), %r10
	testq	%r10, %r10
	je	LBB0_8
## %bb.6:
	movq	_WPA_ALG_WEP@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	cmpl	$1, 16(%rbx)
	movl	(%rax), %edx
	sete	%r9b
	movq	24(%rbx), %rax
	movl	4(%rax), %eax
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	pushq	%rax
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_hostapd_drv_set_key
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:
	movq	32(%rbx), %rax
LBB0_8:
	movq	16(%rax), %r10
	testq	%r10, %r10
	je	LBB0_11
## %bb.9:
	movq	_WPA_ALG_WEP@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	cmpl	$2, 16(%rbx)
	movl	(%rax), %edx
	sete	%r9b
	movq	24(%rbx), %rax
	movl	8(%rax), %eax
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$2, %r8d
	pushq	%rax
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_hostapd_drv_set_key
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movq	32(%rbx), %rax
LBB0_11:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_WPA_ALG_WEP@GOTPCREL(%rip), %rcx
	xorl	%r9d, %r9d
	cmpl	$3, 16(%rbx)
	movl	(%rcx), %edx
	sete	%r9b
	movq	24(%rbx), %rcx
	movl	12(%rcx), %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$3, %r8d
	pushq	%rbx
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_hostapd_drv_set_key
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_13
LBB0_14:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_ALG_WEP,4,2                ## @WPA_ALG_WEP
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not set WEP keys for WDS interface; %s"

	.no_dead_strip	_hostapd_set_wds_encryption
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_set_wds_encryption
_hostapd_set_wds_encryption:            ; @hostapd_set_wds_encryption
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x0]
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x21, #32]
	ldr	x9, [x8]
Lloh0:
	adrp	x22, _WPA_ALG_WEP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WPA_ALG_WEP@GOTPAGEOFF]
	cbz	x9, LBB0_6
; %bb.4:
	ldr	w2, [x22]
	ldr	w8, [x21, #16]
	cmp	w8, #0
	cset	w5, eq
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	x9, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	mov	w7, #0
	bl	_hostapd_drv_set_key
	cbnz	x0, LBB0_14
; %bb.5:
	ldr	x8, [x21, #32]
LBB0_6:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_9
; %bb.7:
	ldr	w2, [x22]
	ldr	w8, [x21, #16]
	cmp	w8, #1
	cset	w5, eq
	ldr	x8, [x21, #24]
	ldr	w8, [x8, #4]
	str	w8, [sp, #8]
	str	x9, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	mov	w4, #1
	mov	x6, #0
	mov	w7, #0
	bl	_hostapd_drv_set_key
	cbnz	x0, LBB0_14
; %bb.8:
	ldr	x8, [x21, #32]
LBB0_9:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_12
; %bb.10:
	ldr	w2, [x22]
	ldr	w8, [x21, #16]
	cmp	w8, #2
	cset	w5, eq
	ldr	x8, [x21, #24]
	ldr	w8, [x8, #8]
	str	w8, [sp, #8]
	str	x9, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	mov	w4, #2
	mov	x6, #0
	mov	w7, #0
	bl	_hostapd_drv_set_key
	cbnz	x0, LBB0_14
; %bb.11:
	ldr	x8, [x21, #32]
LBB0_12:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_2
; %bb.13:
	ldr	w2, [x22]
	ldr	w9, [x21, #16]
	cmp	w9, #3
	cset	w5, eq
	ldr	x9, [x21, #24]
	ldr	w9, [x9, #12]
	str	w9, [sp, #8]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	mov	w4, #3
	mov	x6, #0
	mov	w7, #0
	bl	_hostapd_drv_set_key
	cbz	x0, LBB0_2
LBB0_14:
Lloh2:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_wpa_printf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_ALG_WEP,4,2                ; @WPA_ALG_WEP
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not set WEP keys for WDS interface; %s"

	.no_dead_strip	_hostapd_set_wds_encryption
.subsections_via_symbols
