	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_config_bss
_hostapd_config_bss:                    ## @hostapd_config_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpb	$0, (%rsi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rdi
	incq	%rsi
	movl	$8, %edx
	callq	_os_realloc_array
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, 16(%rbx)
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r12
	movl	$4, %edi
	callq	_os_zalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rbx)
	movq	%r12, (%rcx,%rax,8)
	movq	%r12, (%rbx)
	movq	%r12, %rdi
	callq	_hostapd_config_defaults_bss
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_os_strlcpy
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	callq	_os_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	%r12, %rdi
	callq	_os_free
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memory for multi-BSS entry"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate memory for multi-BSS RADIUS data"

	.comm	_IFNAMSIZ,8,3                   ## @IFNAMSIZ
	.no_dead_strip	_hostapd_config_bss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_config_bss
_hostapd_config_bss:                    ; @hostapd_config_bss
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldrb	w8, [x1]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #16]
	ldr	x8, [x20, #8]
	add	x1, x8, #1
	mov	w2, #8
	bl	_os_realloc_array
	cbz	x0, LBB0_5
; %bb.2:
	str	x0, [x20, #16]
	mov	w0, #16
	bl	_os_zalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	mov	w0, #4
	bl	_os_zalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_6
; %bb.4:
	ldp	x9, x8, [x20, #8]
	add	x10, x9, #1
	str	x21, [x8, x9, lsl #3]
	stp	x21, x10, [x20]
	mov	x0, x21
	bl	_hostapd_config_defaults_bss
	ldr	w0, [x21]
	mov	x1, x19
	mov	w2, #4
	bl	_os_strlcpy
	ldp	w1, w0, [x21]
Lloh0:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x2, x8, #1
	bl	_os_memcpy
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	bl	_os_free
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memory for multi-BSS entry"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate memory for multi-BSS RADIUS data"

	.comm	_IFNAMSIZ,8,3                   ; @IFNAMSIZ
	.no_dead_strip	_hostapd_config_bss
.subsections_via_symbols
