	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_ctrl_iface_global_reinit
_wpas_ctrl_iface_global_reinit:         ## @wpas_ctrl_iface_global_reinit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rsi), %edi
	movl	$-1, %r14d
	testl	%edi, %edi
	jle	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, 8(%rsi)
	je	LBB0_3
## %bb.2:
	movl	%edi, %r14d
	jmp	LBB0_5
LBB0_3:
	callq	_eloop_unregister_read_sock
	movl	(%rbx), %edi
	callq	_close
	movl	$-1, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wpas_global_ctrl_iface_open_sock
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	(%rbx), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wpas_ctrl_iface_global_reinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_ctrl_iface_global_reinit
_wpas_ctrl_iface_global_reinit:         ; @wpas_ctrl_iface_global_reinit
	.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
	ldr	w19, [x1]
	cmp	w19, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_eloop_unregister_read_sock
	ldr	w0, [x20]
	bl	_close
	mov	w19, #-1
	str	w19, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_wpas_global_ctrl_iface_open_sock
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w19, [x20]
	b	LBB0_5
LBB0_4:
	mov	w19, #-1
LBB0_5:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wpas_ctrl_iface_global_reinit
.subsections_via_symbols
