	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_interface_init_bss     ## -- Begin function hostapd_interface_init_bss
	.p2align	4, 0x90
_hostapd_interface_init_bss:            ## @hostapd_interface_init_bss
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_44
## %bb.1:
	movq	%rsi, %r12
	cmpb	$0, (%rsi)
	je	LBB0_44
## %bb.2:
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movl	32(%rax), %edi
	movq	%r12, %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	(%rbx), %r14
	jb	LBB0_5
	jmp	LBB0_8
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_6:
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %r15
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%r15, %r15
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r15, %r15
	je	LBB0_25
## %bb.10:
	movq	%r14, %rdi
	callq	*8(%rbx)
	testq	%rax, %rax
	je	LBB0_44
## %bb.11:
	movq	%rax, %r12
	cmpl	$2, (%rax)
	jl	LBB0_14
## %bb.12:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_13
LBB0_25:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_hostapd_init
	testq	%rax, %rax
	je	LBB0_44
## %bb.26:
	movq	%rax, %r15
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	32(%rax), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	%rbx, 24(%r15)
	xorl	%r14d, %r14d
	movq	%r15, %r12
	testl	%r13d, %r13d
	jle	LBB0_40
LBB0_28:
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movq	8(%rax), %r8
	movq	(%r8), %rax
	leal	-1(%r13), %esi
	movl	%r13d, %ecx
	andl	$3, %ecx
	cmpl	$3, %esi
	jae	LBB0_29
LBB0_36:
	testl	%ecx, %ecx
	jne	LBB0_37
LBB0_40:
	movq	16(%r15), %rax
	movq	8(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rax
	cmpb	$0, (%rax)
	jne	LBB0_45
## %bb.41:
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_hostapd_drv_none
	testl	%eax, %eax
	jne	LBB0_45
## %bb.42:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r12, %r12
	je	LBB0_45
## %bb.43:
	movq	%r12, %rdi
	callq	_hostapd_interface_deinit_free
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_37 Depth=1
	decl	%ecx
	je	LBB0_40
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	jle	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	decq	%rax
	movq	%rax, (%r8)
	jmp	LBB0_39
LBB0_14:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_17
## %bb.15:
	movq	%rbx, %rdi
	movq	%rsi, %rbx
	callq	_ifname_in_use
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdx
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_13:
	movq	%r12, %rdi
	callq	_hostapd_config_free
	jmp	LBB0_45
LBB0_17:
	movq	16(%r15), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %esi
	incl	%esi
	movl	$8, %edx
	callq	_os_realloc_array
	movq	%rax, %rbx
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	incl	%esi
	movl	$8, %edx
	callq	_os_realloc_array
	testq	%rax, %rax
	je	LBB0_18
## %bb.21:
	movq	%rax, 8(%r15)
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.22:
	movq	16(%r15), %rax
	movq	%rbx, 8(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, 16(%rax)
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax), %rax
	movq	%rcx, (%rbx,%rax,8)
	movq	%rcx, %rbx
	movq	16(%r15), %rsi
	incl	(%rsi)
	movq	%r15, %rdi
	movq	%rcx, %rdx
	callq	_hostapd_alloc_bss_data
	movq	16(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 16(%rcx)
	movq	8(%r15), %rcx
	movslq	(%r15), %r14
	movq	%rax, (%rcx,%r14,8)
	movq	%rax, 16(%rax)
	leal	1(%r14), %eax
	movl	%eax, (%r15)
	decl	(%r12)
	movq	8(%r12), %rax
	movq	$0, (%rax)
	movq	%r12, %rdi
	callq	_hostapd_config_free
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	jg	LBB0_28
	jmp	LBB0_40
LBB0_29:
	andl	$-4, %r13d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	%rax, (%r8)
LBB0_35:                                ##   in Loop: Header=BB0_30 Depth=1
	addl	$-4, %r13d
	je	LBB0_36
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdx
	leaq	-1(%rax), %rsi
	testq	%rax, %rax
	cmovleq	%rax, %rsi
	leaq	-1(%rsi), %rdi
	testq	%rsi, %rsi
	cmovleq	%rsi, %rdi
	leaq	-1(%rdi), %rbx
	testq	%rdi, %rdi
	cmovleq	%rdi, %rbx
	leaq	-1(%rbx), %rax
	testq	%rbx, %rbx
	cmovleq	%rbx, %rax
	testq	%rdx, %rdx
	jg	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	testq	%rsi, %rsi
	jg	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	testq	%rdi, %rdi
	jg	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=1
	testq	%rbx, %rbx
	jle	LBB0_35
	jmp	LBB0_34
LBB0_18:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.19:
	movq	16(%r15), %rax
	movq	%rbx, 8(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, 16(%rax)
	jmp	LBB0_20
LBB0_23:
	decl	(%rcx)
LBB0_20:
	movq	%r12, %rdi
	callq	_hostapd_config_free
LBB0_44:
	xorl	%r15d, %r15d
LBB0_45:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configuration file: %s (phy %s)%s"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	" --> new PHY"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Multiple BSSes specified in BSS-config"

L_.str.4:                               ## @.str.4
	.asciz	"Interface name %s already in use"

L_.str.5:                               ## @.str.5
	.asciz	"Interface name not specified in %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_interface_init_bss     ; -- Begin function hostapd_interface_init_bss
	.p2align	2
_hostapd_interface_init_bss:            ; @hostapd_interface_init_bss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_33
; %bb.1:
	mov	x22, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_33
; %bb.2:
	mov	x20, x3
	mov	x19, x2
	mov	x23, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8, #32]
	mov	x1, x22
	bl	_os_strcmp
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x8, [x23]
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_6:
	mov	x21, #0
	b	LBB0_8
LBB0_7:
	ldr	x8, [x23, #16]
	ldr	x21, [x8, x21, lsl #3]
LBB0_8:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x21, #0
	csel	x8, x9, x8, eq
	stp	x22, x8, [sp, #8]
	str	x19, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	cbz	x21, LBB0_12
; %bb.9:
	ldr	x8, [x23, #8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_33
; %bb.10:
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.11:
Lloh9:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	b	LBB0_32
LBB0_12:
	mov	x0, x23
	mov	x1, x19
	bl	_hostapd_init
	mov	x21, x0
	cbz	x0, LBB0_34
; %bb.13:
	ldr	w0, [x21, #32]
	mov	x1, x22
	mov	w2, #4
	bl	_os_strlcpy
	mov	x24, #0
	str	x23, [x21, #24]
	mov	x22, x21
	cmp	w20, #1
	b.lt	LBB0_25
LBB0_14:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x8]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	subs	w20, w20, #1
	b.eq	LBB0_25
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	subs	x10, x9, #1
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x10, [x8]
	mov	x9, x10
	b	LBB0_15
LBB0_18:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	x24, [x8]
	ldrb	w8, [x24]
	cbz	w8, LBB0_21
; %bb.19:
	mov	x0, x23
	mov	x1, x24
	bl	_ifname_in_use
	cbz	x0, LBB0_21
; %bb.20:
Lloh14:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	b	LBB0_32
LBB0_21:
	ldr	x8, [x21, #16]
	ldr	x0, [x8, #8]
	ldr	w8, [x8]
	add	w1, w8, #1
	mov	w2, #8
	bl	_os_realloc_array
	mov	x23, x0
	ldr	x0, [x21, #8]
	ldr	w8, [x21]
	add	w1, w8, #1
	mov	w2, #8
	bl	_os_realloc_array
	cbz	x0, LBB0_29
; %bb.22:
	str	x0, [x21, #8]
	cbz	x23, LBB0_32
; %bb.23:
	ldr	x8, [x21, #16]
	str	x23, [x8, #8]
	ldr	x9, [x23]
	str	x9, [x8, #16]
	ldr	x9, [x22, #8]
	ldr	x24, [x9]
	ldrsw	x8, [x8]
	str	x24, [x23, x8, lsl #3]
	ldr	x1, [x21, #16]
	ldr	w8, [x1]
	add	w8, w8, #1
	str	w8, [x1]
	mov	x0, x21
	mov	x2, x24
	bl	_hostapd_alloc_bss_data
	ldr	x8, [x21, #16]
	cbz	x0, LBB0_31
; %bb.24:
	str	x24, [x8, #16]
	ldr	x8, [x21, #8]
	ldrsw	x24, [x21]
	str	x0, [x8, x24, lsl #3]
	str	x0, [x0, #16]
	add	w8, w24, #1
	str	w8, [x21]
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
	ldr	x8, [x22, #8]
	str	xzr, [x8]
	mov	x0, x22
	bl	_hostapd_config_free
	mov	x22, #0
	cmp	w20, #1
	b.ge	LBB0_14
LBB0_25:
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x8, [x8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_34
; %bb.26:
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x24, lsl #3]
	bl	_hostapd_drv_none
	cbnz	w0, LBB0_34
; %bb.27:
Lloh19:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	cbz	x22, LBB0_33
; %bb.28:
	mov	x0, x22
	bl	_hostapd_interface_deinit_free
	b	LBB0_33
LBB0_29:
	cbz	x23, LBB0_32
; %bb.30:
	ldr	x8, [x21, #16]
	str	x23, [x8, #8]
	ldr	x9, [x23]
	str	x9, [x8, #16]
	b	LBB0_32
LBB0_31:
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_32:
	mov	x0, x22
	bl	_hostapd_config_free
LBB0_33:
	mov	x21, #0
LBB0_34:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configuration file: %s (phy %s)%s"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	" --> new PHY"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Multiple BSSes specified in BSS-config"

l_.str.4:                               ; @.str.4
	.asciz	"Interface name %s already in use"

l_.str.5:                               ; @.str.5
	.asciz	"Interface name not specified in %s"

.subsections_via_symbols
