	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_interface2
_setup_interface2:                      ## @setup_interface2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, 24(%rdi)
	callq	_hostapd_get_hw_features
	testq	%rax, %rax
	je	LBB0_1
LBB0_15:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hostapd_setup_interface_complete ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_hostapd_select_hw_mode
	testl	%eax, %eax
	js	LBB0_2
## %bb.7:
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_3
LBB0_10:
	movq	%rbx, %rdi
	callq	_hostapd_check_ht_capab
	testl	%eax, %eax
	js	LBB0_3
## %bb.11:
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_3:
	movq	_HAPD_IFACE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hostapd_set_state
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AP_EVENT_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wpa_msg
	movq	(%rbx), %rax
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_eloop_terminate
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not select hw_mode and channel. (%d)"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Interface initialization will be completed in a callback (ACS)"

L_.str.2:                               ## @.str.2
	.asciz	"Interface initialization will be completed in a callback"

L_.str.3:                               ## @.str.3
	.asciz	"DFS support is enabled"

	.comm	_HAPD_IFACE_DISABLED,4,2        ## @HAPD_IFACE_DISABLED
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_AP_EVENT_DISABLED,4,2          ## @AP_EVENT_DISABLED
	.no_dead_strip	_setup_interface2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_interface2
_setup_interface2:                      ; @setup_interface2
	.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
	str	xzr, [x0, #24]
	bl	_hostapd_get_hw_features
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_hostapd_setup_interface_complete
LBB0_2:
	mov	x0, x19
	bl	_hostapd_select_hw_mode
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh5:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_hostapd_check_ht_capab
	tbnz	w0, #31, LBB0_10
; %bb.7:
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.8:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_14
LBB0_10:
Lloh15:
	adrp	x8, _HAPD_IFACE_DISABLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HAPD_IFACE_DISABLED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hostapd_set_state
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _AP_EVENT_DISABLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AP_EVENT_DISABLED@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_wpa_msg
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	bl	_eloop_terminate
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.16:
Lloh24:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	b	LBB0_1
	.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
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not select hw_mode and channel. (%d)"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Interface initialization will be completed in a callback (ACS)"

l_.str.2:                               ; @.str.2
	.asciz	"Interface initialization will be completed in a callback"

l_.str.3:                               ; @.str.3
	.asciz	"DFS support is enabled"

	.comm	_HAPD_IFACE_DISABLED,4,2        ; @HAPD_IFACE_DISABLED
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_AP_EVENT_DISABLED,4,2          ; @AP_EVENT_DISABLED
	.no_dead_strip	_setup_interface2
.subsections_via_symbols
