	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_driver_ndis_adapter_open
_wpa_driver_ndis_adapter_open:          ## @wpa_driver_ndis_adapter_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	8(%rdi), %rcx
	leaq	L_.str(%rip), %rdx
	leaq	-160(%rbp), %r14
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_os_snprintf
	movq	%r14, %rdi
	callq	_PacketOpenAdapter
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-160(%rbp), %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$144, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\Device\\NPF_%s"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"NDIS: PacketOpenAdapter failed for '%s'"

	.comm	_INVALID_HANDLE_VALUE,4,2       ## @INVALID_HANDLE_VALUE
	.comm	_IOCTL_NDISUIO_OPEN_DEVICE,4,2  ## @IOCTL_NDISUIO_OPEN_DEVICE
	.comm	_MAX_NDIS_DEVICE_NAME_LEN,4,2   ## @MAX_NDIS_DEVICE_NAME_LEN
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.no_dead_strip	_wpa_driver_ndis_adapter_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_driver_ndis_adapter_open
_wpa_driver_ndis_adapter_open:          ; @wpa_driver_ndis_adapter_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x3, [x0, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #128
	bl	_os_snprintf
	add	x0, sp, #8
	bl	_PacketOpenAdapter
	str	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\Device\\NPF_%s"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"NDIS: PacketOpenAdapter failed for '%s'"

	.comm	_INVALID_HANDLE_VALUE,4,2       ; @INVALID_HANDLE_VALUE
	.comm	_IOCTL_NDISUIO_OPEN_DEVICE,4,2  ; @IOCTL_NDISUIO_OPEN_DEVICE
	.comm	_MAX_NDIS_DEVICE_NAME_LEN,4,2   ; @MAX_NDIS_DEVICE_NAME_LEN
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.no_dead_strip	_wpa_driver_ndis_adapter_open
.subsections_via_symbols
