	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_reload_bss
_hostapd_reload_bss:                    ## @hostapd_reload_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, 32(%rdi)
	je	LBB0_27
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	jns	LBB0_3
## %bb.2:
	movq	24(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_3:
	movl	16(%rbx), %edi
	movl	88(%rax), %esi
	callq	_radius_client_reconfig
	movq	(%rbx), %rdi
	cmpl	$0, 56(%rdi)
	je	LBB0_4
LBB0_9:
	callq	_hostapd_setup_wpa_psk
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movq	(%rbx), %rax
	movl	$1, %edx
	cmpq	$0, 80(%rax)
	jne	LBB0_13
## %bb.12:
	xorl	%edx, %edx
	cmpq	$0, 64(%rax)
	setne	%dl
LBB0_13:
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_hostapd_set_drv_ieee8021x
	movq	(%rbx), %rax
	cmpq	$0, 64(%rax)
	je	LBB0_14
## %bb.16:
	cmpq	$0, 8(%rbx)
	je	LBB0_17
## %bb.19:
	movq	%rbx, %rdi
	callq	_hostapd_reconfig_wpa
	movq	8(%rbx), %rdi
	leaq	-16(%rbp), %rsi
	callq	_wpa_auth_get_wpa_ie
	movq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_hostapd_set_generic_elem
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_23
LBB0_4:
	movq	32(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.6:
	cmpq	$0, 48(%rdi)
	je	LBB0_9
## %bb.7:
	cmpq	$0, 40(%rdi)
	je	LBB0_9
## %bb.8:
	addq	$32, %rdi
	callq	_hostapd_config_clear_wpa_psk
	movq	(%rbx), %rdi
	jmp	LBB0_9
LBB0_14:
	cmpq	$0, 72(%rax)
	movq	8(%rbx), %rdi
	je	LBB0_21
## %bb.15:
	testq	%rdi, %rdi
	jne	LBB0_22
LBB0_17:
	movq	%rbx, %rdi
	callq	_hostapd_setup_wpa
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.18:
	callq	_wpa_init_keys
	jmp	LBB0_23
LBB0_21:
	testq	%rdi, %rdi
	je	LBB0_23
LBB0_22:
	callq	_wpa_deinit
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hostapd_set_privacy
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	movq	%rbx, %rsi
	callq	_hostapd_setup_encryption
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hostapd_set_generic_elem
LBB0_23:
	movq	%rbx, %rdi
	callq	_ieee802_11_set_beacon
	movq	%rbx, %rdi
	callq	_hostapd_update_wps
	movq	(%rbx), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_26
## %bb.24:
	movl	16(%rax), %edx
	movl	20(%rax), %esi
	movq	%rbx, %rdi
	callq	_hostapd_set_ssid
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_26:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	8(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	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 re-configure WPA PSK after reloading configuration"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to configure WPA IE for the kernel driver."

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

L_.str.3:                               ## @.str.3
	.asciz	"Could not set SSID for kernel driver"

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

	.no_dead_strip	_hostapd_reload_bss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_reload_bss
_hostapd_reload_bss:                    ; @hostapd_reload_bss
	.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
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_28
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
	tbz	x9, #63, LBB0_3
; %bb.2:
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_3:
	ldr	w0, [x19, #16]
	ldr	w1, [x8, #88]
	bl	_radius_client_reconfig
	ldr	x0, [x19]
	ldr	w8, [x0, #56]
	cbz	w8, LBB0_8
LBB0_4:
	bl	_hostapd_setup_wpa_psk
Lloh0:
	adrp	x20, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSG_ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x8, #80]
	cbz	x9, LBB0_13
; %bb.7:
	mov	w2, #1
	b	LBB0_14
LBB0_8:
	mov	x8, x0
	ldr	x9, [x8, #32]!
	cbz	x9, LBB0_4
; %bb.9:
	ldr	w9, [x9]
	cbnz	w9, LBB0_4
; %bb.10:
	ldr	x9, [x0, #48]
	cbz	x9, LBB0_4
; %bb.11:
	ldr	x9, [x0, #40]
	cbz	x9, LBB0_4
; %bb.12:
	mov	x0, x8
	bl	_hostapd_config_clear_wpa_psk
	ldr	x0, [x19]
	b	LBB0_4
LBB0_13:
	ldr	x9, [x8, #64]
	cmp	x9, #0
	cset	w2, ne
LBB0_14:
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_hostapd_set_drv_ieee8021x
	ldr	x8, [x19]
	ldr	x9, [x8, #64]
	cbz	x9, LBB0_18
; %bb.15:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.16:
	mov	x0, x19
	bl	_hostapd_reconfig_wpa
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	bl	_wpa_auth_get_wpa_ie
	mov	x1, x0
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_hostapd_set_generic_elem
	cbz	x0, LBB0_24
; %bb.17:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_24
LBB0_18:
	ldr	x8, [x8, #72]
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_22
; %bb.19:
	cbnz	x0, LBB0_23
LBB0_20:
	mov	x0, x19
	bl	_hostapd_setup_wpa
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_24
; %bb.21:
	bl	_wpa_init_keys
	b	LBB0_24
LBB0_22:
	cbz	x0, LBB0_24
LBB0_23:
	bl	_wpa_deinit
	str	xzr, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_hostapd_set_privacy
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_hostapd_setup_encryption
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_hostapd_set_generic_elem
LBB0_24:
	mov	x0, x19
	bl	_ieee802_11_set_beacon
	mov	x0, x19
	bl	_hostapd_update_wps
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_27
; %bb.25:
	ldp	w2, w1, [x8, #16]
	mov	x0, x19
	bl	_hostapd_set_ssid
	cbz	x0, LBB0_27
; %bb.26:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
LBB0_27:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_28:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.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	"Failed to re-configure WPA PSK after reloading configuration"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to configure WPA IE for the kernel driver."

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

l_.str.3:                               ; @.str.3
	.asciz	"Could not set SSID for kernel driver"

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

	.no_dead_strip	_hostapd_reload_bss
.subsections_via_symbols
