	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2_ndisuio_start_read
_l2_ndisuio_start_read:                 ## @l2_ndisuio_start_read
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	movl	12(%rbx), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_driver_ndis_get_ndisuio_handle
	movl	8(%rbx), %esi
	leaq	4(%rbx), %rcx
	movl	%eax, %edi
	movl	$4, %edx
	movq	%rbx, %r8
	callq	_ReadFile
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_l2_packet_callback
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_IO_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_IO_PENDING,8,3           ## @ERROR_IO_PENDING
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"L2(NDISUIO): ReadFile failed: %d"

L_.str.1:                               ## @.str.1
	.asciz	"L2(NDISUIO): ReadFile returned data without wait for completion"

	.no_dead_strip	_l2_ndisuio_start_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2_ndisuio_start_read
_l2_ndisuio_start_read:                 ; @l2_ndisuio_start_read
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	ldr	w8, [x19, #12]
	str	w8, [x19]
	bl	_driver_ndis_get_ndisuio_handle
	ldr	w1, [x19, #8]
	add	x3, x19, #4
	mov	w2, #4
	mov	x4, x19
	bl	_ReadFile
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	cbnz	w20, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_l2_packet_callback
	b	LBB0_4
LBB0_3:
	bl	_GetLastError
Lloh5:
	adrp	x8, _ERROR_IO_PENDING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR_IO_PENDING@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_IO_PENDING,8,3           ; @ERROR_IO_PENDING
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"L2(NDISUIO): ReadFile failed: %d"

l_.str.1:                               ; @.str.1
	.asciz	"L2(NDISUIO): ReadFile returned data without wait for completion"

	.no_dead_strip	_l2_ndisuio_start_read
.subsections_via_symbols
