	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlan_if_add
_vlan_if_add:                           ## @vlan_if_add
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_NUM_WEP_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx,%rdx,4)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_3
LBB0_5:
	movl	(%r12), %edi
	callq	_iface_exists
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.7:
	movl	$-1, %ebx
	jmp	LBB0_16
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
	jmp	LBB0_16
LBB0_8:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_hostapd_vlan_if_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
LBB0_9:
	movl	(%r12), %edi
	callq	_ifconfig_up
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.10:
	movl	4(%r12), %esi
	callq	_wpa_auth_ensure_group
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movl	%eax, %r15d
	movq	_MSG_ERROR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	4(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r14), %rdi
	movl	4(%r12), %esi
	callq	_wpa_auth_release_group
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	(%rbx), %edi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_13:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_hostapd_vlan_if_remove
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	(%rbx), %edi
	movl	(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_15:
	movl	%r15d, %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_WEP_KEYS,4,2               ## @NUM_WEP_KEYS
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VLAN: Refusing to set up VLAN iface %s with WEP"

L_.str.1:                               ## @.str.1
	.asciz	"WPA initialization for VLAN %d failed (%d)"

L_.str.2:                               ## @.str.2
	.asciz	"WPA deinit of %s failed"

L_.str.3:                               ## @.str.3
	.asciz	"Removal of %s failed"

	.no_dead_strip	_vlan_if_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlan_if_add
_vlan_if_add:                           ; @vlan_if_add
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NUM_WEP_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_WEP_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cbnz	w10, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	ldr	w0, [x19]
	bl	_iface_exists
	cbz	w0, LBB0_8
; %bb.5:
	cbnz	w21, LBB0_9
; %bb.6:
	mov	w21, #-1
	b	LBB0_16
LBB0_7:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w21, #-1
	b	LBB0_16
LBB0_8:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_hostapd_vlan_if_add
	mov	x21, x0
	cbnz	w0, LBB0_16
LBB0_9:
	ldr	w0, [x19]
	bl	_ifconfig_up
	ldr	x0, [x20]
	cbz	x0, LBB0_15
; %bb.10:
	ldr	w1, [x19, #4]
	bl	_wpa_auth_ensure_group
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.11:
Lloh8:
	adrp	x22, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MSG_ERROR@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w2, [x19, #4]
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x20]
	ldr	w1, [x19, #4]
	bl	_wpa_auth_release_group
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w0, [x22]
	ldr	w2, [x19]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_13:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_hostapd_vlan_if_remove
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w0, [x22]
	ldr	w2, [x19]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	b	LBB0_16
LBB0_15:
	mov	w21, #0
LBB0_16:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_WEP_KEYS,4,2               ; @NUM_WEP_KEYS
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VLAN: Refusing to set up VLAN iface %s with WEP"

l_.str.1:                               ; @.str.1
	.asciz	"WPA initialization for VLAN %d failed (%d)"

l_.str.2:                               ; @.str.2
	.asciz	"WPA deinit of %s failed"

l_.str.3:                               ; @.str.3
	.asciz	"Removal of %s failed"

	.no_dead_strip	_vlan_if_add
.subsections_via_symbols
