	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_reload_config          ## -- Begin function hostapd_reload_config
	.p2align	4, 0x90
_hostapd_reload_config:                 ## @hostapd_reload_config
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	movq	24(%r12), %r15
	movl	$-1, %r14d
	testq	%r15, %r15
	je	LBB0_19
## %bb.5:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.6:
	movq	8(%r12), %rax
	movq	(%rax), %r13
	callq	*%rcx
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_hostapd_clear_old
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_hostapd_iface_conf_changed
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	32(%r12), %rdi
	callq	_os_strdup
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hostapd_remove_iface
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hostapd_init
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_os_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_hostapd_config_free
	testq	%r13, %r13
	je	LBB0_11
## %bb.12:
	movq	%r15, 24(%r13)
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	%r13, (%rcx,%rax,8)
	incq	%rax
	movq	%rax, (%r15)
	movq	%r13, %rdi
	callq	_hostapd_enable_iface
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_19
## %bb.13:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_19
LBB0_1:
	movq	%r12, %rdi
	callq	_hostapd_clear_old
	cmpq	$0, (%r12)
	je	LBB0_18
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_hostapd_reload_bss
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_3
	jmp	LBB0_19
LBB0_14:
	movq	%rbx, 16(%r12)
	cmpq	$0, (%r12)
	je	LBB0_17
## %bb.15:
	xorl	%r15d, %r15d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %r14
	movq	%rbx, 8(%r14)
	movl	32(%r13), %eax
	movl	%eax, 32(%rbx)
	movl	28(%r13), %eax
	movl	%eax, 28(%rbx)
	movl	24(%r13), %eax
	movl	%eax, 24(%rbx)
	movups	8(%r13), %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%r13, %rdi
	callq	_hostapd_get_oper_chwidth
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hostapd_set_oper_chwidth
	movq	8(%r14), %rbx
	movq	%r13, %rdi
	callq	_hostapd_get_oper_centr_freq_seg0_idx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hostapd_set_oper_centr_freq_seg0_idx
	movq	8(%r14), %rbx
	movq	%r13, %rdi
	callq	_hostapd_get_oper_centr_freq_seg1_idx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_hostapd_set_oper_centr_freq_seg1_idx
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_hostapd_reload_bss
	incq	%r15
	cmpq	(%r12), %r15
	jb	LBB0_16
LBB0_17:
	movq	%r13, %rdi
	callq	_hostapd_config_free
LBB0_18:
	xorl	%r14d, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_hostapd_config_free
	jmp	LBB0_19
LBB0_11:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configuration changes include interface/BSS modification - force full disable+enable sequence"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize interface on config reload"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable interface on config reload"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_reload_config          ; -- Begin function hostapd_reload_config
	.p2align	2
_hostapd_reload_config:                 ; @hostapd_reload_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x0, [x0, #32]
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x21, [x19, #24]
	cbz	x21, LBB0_19
; %bb.2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_19
; %bb.3:
	ldr	x9, [x19, #8]
	ldr	x23, [x9]
	blr	x8
	cbz	x0, LBB0_19
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	bl	_hostapd_clear_old
	ldr	x22, [x23, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_hostapd_iface_conf_changed
	cbz	x0, LBB0_13
; %bb.5:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #32]
	bl	_os_strdup
	cbz	x0, LBB0_17
; %bb.6:
	mov	x22, x0
	ldr	x8, [x23]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_hostapd_remove_iface
	mov	x0, x21
	mov	x1, x22
	bl	_hostapd_init
	mov	x19, x0
	mov	x0, x22
	bl	_os_free
	mov	x0, x20
	bl	_hostapd_config_free
	cbz	x19, LBB0_18
; %bb.7:
	str	x21, [x19, #24]
	ldp	x9, x8, [x21]
	str	x19, [x8, x9, lsl #3]
	add	x8, x9, #1
	str	x8, [x21]
	mov	x0, x19
	bl	_hostapd_enable_iface
	mov	x19, x0
	tbz	w0, #31, LBB0_20
; %bb.8:
Lloh5:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_20
LBB0_9:
	mov	x0, x19
	bl	_hostapd_clear_old
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x20, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	bl	_hostapd_reload_bss
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lo	LBB0_11
LBB0_12:
	mov	w19, #0
	b	LBB0_20
LBB0_13:
	str	x20, [x19, #16]
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.14:
	mov	x24, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x25, x24, #3
	ldr	x21, [x8, x25]
	str	x20, [x21, #8]
	ldr	w8, [x22, #32]
	str	w8, [x20, #32]
	ldr	d0, [x22, #24]
	str	d0, [x20, #24]
	ldur	q0, [x22, #8]
	stur	q0, [x20, #8]
	mov	x0, x22
	bl	_hostapd_get_oper_chwidth
	mov	x1, x0
	mov	x0, x20
	bl	_hostapd_set_oper_chwidth
	ldr	x23, [x21, #8]
	mov	x0, x22
	bl	_hostapd_get_oper_centr_freq_seg0_idx
	mov	x1, x0
	mov	x0, x23
	bl	_hostapd_set_oper_centr_freq_seg0_idx
	ldr	x23, [x21, #8]
	mov	x0, x22
	bl	_hostapd_get_oper_centr_freq_seg1_idx
	mov	x1, x0
	mov	x0, x23
	bl	_hostapd_set_oper_centr_freq_seg1_idx
	ldr	x8, [x20]
	ldr	x8, [x8, x25]
	str	x8, [x21]
	mov	x0, x21
	bl	_hostapd_reload_bss
	add	x24, x24, #1
	ldr	x8, [x19]
	cmp	x24, x8
	b.lo	LBB0_15
LBB0_16:
	mov	x0, x22
	bl	_hostapd_config_free
	b	LBB0_12
LBB0_17:
	mov	x0, x20
	bl	_hostapd_config_free
	b	LBB0_19
LBB0_18:
Lloh10:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_19:
	mov	w19, #-1
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.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_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configuration changes include interface/BSS modification - force full disable+enable sequence"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize interface on config reload"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable interface on config reload"

.subsections_via_symbols
