	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_enable_iface           ## -- Begin function hostapd_enable_iface
	.p2align	4, 0x90
_hostapd_enable_iface:                  ## @hostapd_enable_iface
	.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, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_2:
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	$1, %esi
	callq	_hostapd_set_security_params
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_6
LBB0_7:
	movq	24(%r15), %rdi
	movl	$1, %esi
	callq	_hostapd_config_check
	testq	%rax, %rax
	js	LBB0_13
## %bb.8:
	movq	16(%r15), %rax
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.10:
	movq	%r15, %rdi
	callq	*%rcx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.11:
	movq	%r15, %rdi
	callq	_hostapd_setup_interface
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	movq	(%rax), %rsi
	movq	%r15, %rdx
	callq	_hostapd_deinit_driver
	jmp	LBB0_3
LBB0_13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_2
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interface %s already enabled"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Enable interface %s"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Invalid configuration - cannot enable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_enable_iface           ; -- Begin function hostapd_enable_iface
	.p2align	2
_hostapd_enable_iface:                  ; @hostapd_enable_iface
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_wpa_printf
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x0, [x8, x20, lsl #3]
	mov	w1, #1
	bl	_hostapd_set_security_params
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lo	LBB0_7
LBB0_8:
	ldr	x0, [x19, #24]
	mov	w1, #1
	bl	_hostapd_config_check
	tbnz	x0, #63, LBB0_14
; %bb.9:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.10:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.11:
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_3
; %bb.12:
	mov	x0, x19
	bl	_hostapd_setup_interface
	cbz	x0, LBB0_4
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	ldr	x1, [x8]
	mov	x2, x19
	bl	_hostapd_deinit_driver
	b	LBB0_3
LBB0_14:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interface %s already enabled"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Enable interface %s"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Invalid configuration - cannot enable"

.subsections_via_symbols
