	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_driver_ndis_event_adapter_arrival ## -- Begin function wpa_driver_ndis_event_adapter_arrival
	.p2align	4, 0x90
_wpa_driver_ndis_event_adapter_arrival: ## @wpa_driver_ndis_event_adapter_arrival
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.1(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_os_sleep
	incl	%ebx
	cmpl	$30, %ebx
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_wpa_driver_ndis_adapter_close
	movq	%r15, %rdi
	callq	_wpa_driver_ndis_adapter_init
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_wpa_driver_ndis_adapter_open
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_5:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_os_memset
	movl	-36(%rbp), %edi
	movl	4(%r15), %esi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	_EVENT_INTERFACE_ADDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	(%r15), %edi
	movq	_EVENT_INTERFACE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_wpa_supplicant_event
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NDIS: Notify Adapter Arrival"

L_.str.1:                               ## @.str.1
	.asciz	"NDIS: Driver re-initialization (%d) failed"

L_.str.2:                               ## @.str.2
	.asciz	"NDIS: Driver re-initialized"

	.comm	_EVENT_INTERFACE_ADDED,4,2      ## @EVENT_INTERFACE_ADDED
	.comm	_EVENT_INTERFACE_STATUS,4,2     ## @EVENT_INTERFACE_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_driver_ndis_event_adapter_arrival ; -- Begin function wpa_driver_ndis_event_adapter_arrival
	.p2align	2
_wpa_driver_ndis_event_adapter_arrival: ; @wpa_driver_ndis_event_adapter_arrival
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w22, #0
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	str	x22, [sp]
	mov	x1, x20
	bl	_wpa_printf
	mov	w0, #1
	mov	w1, #0
	bl	_os_sleep
	add	w22, w22, #1
	cmp	w22, #30
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_wpa_driver_ndis_adapter_close
	mov	x0, x19
	bl	_wpa_driver_ndis_adapter_init
	tbnz	x0, #63, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_wpa_driver_ndis_adapter_open
	tbnz	x0, #63, LBB0_1
; %bb.4:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_os_memset
	ldr	w0, [sp, #12]
	ldr	w1, [x19, #4]
	mov	w2, #4
	bl	_os_strlcpy
Lloh8:
	adrp	x8, _EVENT_INTERFACE_ADDED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVENT_INTERFACE_ADDED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _EVENT_INTERFACE_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVENT_INTERFACE_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_wpa_supplicant_event
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NDIS: Notify Adapter Arrival"

l_.str.1:                               ; @.str.1
	.asciz	"NDIS: Driver re-initialization (%d) failed"

l_.str.2:                               ; @.str.2
	.asciz	"NDIS: Driver re-initialized"

	.comm	_EVENT_INTERFACE_ADDED,4,2      ; @EVENT_INTERFACE_ADDED
	.comm	_EVENT_INTERFACE_STATUS,4,2     ; @EVENT_INTERFACE_STATUS
.subsections_via_symbols
