	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_global_deinit
_hostapd_global_deinit:                 ## @hostapd_global_deinit
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_wpa_drivers@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rcx), %rdx
	movq	_global@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edi
	callq	*(%rdx)
	movq	(%r13), %rcx
	movq	(%r12), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx,%rbx,2), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rbx
	testq	%rdi, %rdi
	jne	LBB0_3
LBB0_7:
	callq	_os_free
	movq	$0, (%r12)
	xorl	%eax, %eax
	callq	_random_deinit
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_eloop_destroy
LBB0_9:
	xorl	%eax, %eax
	callq	_closelog
	xorl	%eax, %eax
	callq	_eap_server_unregister_methods
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_daemonize_terminate         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wpa_drivers,8,3                ## @wpa_drivers
	.comm	_global,8,3                     ## @global
	.no_dead_strip	_hostapd_global_deinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_global_deinit
_hostapd_global_deinit:                 ; @hostapd_global_deinit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _wpa_drivers@GOTPAGE
Lloh1:
	ldr	x22, [x22, _wpa_drivers@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x10, [x9]
Lloh2:
	adrp	x21, _global@GOTPAGE
Lloh3:
	ldr	x21, [x21, _global@GOTPAGEOFF]
	ldr	x0, [x21]
	cmp	x10, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
LBB0_1:
	bl	_os_free
	str	xzr, [x21]
	bl	_random_deinit
	cbz	w20, LBB0_3
; %bb.2:
	bl	_eloop_destroy
LBB0_3:
	bl	_closelog
	bl	_eap_server_unregister_methods
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_os_daemonize_terminate
LBB0_4:
	mov	x23, #0
	mov	w24, #8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x9, x24]
	add	x23, x23, #4
	add	x24, x24, #8
	cmp	x10, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x0, x23]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x10]
	mov	x0, x8
	blr	x9
	ldr	x9, [x22]
	ldr	x0, [x21]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_wpa_drivers,8,3                ; @wpa_drivers
	.comm	_global,8,3                     ; @global
	.no_dead_strip	_hostapd_global_deinit
.subsections_via_symbols
