	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_priv_cmd_register
_wpa_priv_cmd_register:                 ## @wpa_priv_cmd_register
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_6
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	16(%rbx), %rax
	movq	40(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	callq	*%rax
LBB0_3:
	movq	$0, 8(%rbx)
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rax
	callq	*32(%rax)
	movq	$0, 40(%rbx)
LBB0_5:
	movl	$0, (%rbx)
LBB0_6:
	movq	_WPA_PRIV_MAX_L2@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%rbx), %rcx
	cmpq	$0, (%rcx,%r14,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	56(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_l2_packet_deinit
	movq	56(%rbx), %rax
	movq	$0, (%rax,%r14,8)
	movl	(%r13), %eax
	jmp	LBB0_10
LBB0_11:
	movq	16(%rbx), %rax
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.12:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movl	48(%rbx), %edi
	callq	*%rax
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, %rdx
	movq	16(%rbx), %rax
	movq	16(%rax), %rcx
	jmp	LBB0_17
LBB0_18:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.19:
	movl	32(%rbx), %esi
	movq	%rbx, %rdi
	callq	*%rax
	jmp	LBB0_20
LBB0_16:
	movq	$0, 40(%rbx)
	xorl	%edx, %edx
LBB0_17:
	movl	32(%rbx), %esi
	movq	%rbx, %rdi
	callq	*%rcx
LBB0_20:
	movq	%rax, 8(%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_21
## %bb.23:
	movl	32(%rbx), %ecx
	movl	36(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	28(%rbx), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_os_memcpy
	movl	%r14d, 24(%rbx)
	movl	$1, (%rbx)
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	*%rax
	testq	%rax, %rax
	js	LBB0_25
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_22
LBB0_15:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_22
LBB0_25:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_22:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cleaning up forgotten driver instance"

	.comm	_WPA_PRIV_MAX_L2,4,2            ## @WPA_PRIV_MAX_L2
L_.str.1:                               ## @.str.1
	.asciz	"Cleaning up forgotten l2_packet instance"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Failed to initialize driver global context"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to initialize driver wrapper"

L_.str.4:                               ## @.str.4
	.asciz	"Driver wrapper '%s' initialized for interface '%s'"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.5:                               ## @.str.5
	.asciz	"Driver interface rejected param"

	.no_dead_strip	_wpa_priv_cmd_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_priv_cmd_register
_wpa_priv_cmd_register:                 ; @wpa_priv_cmd_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
	blr	x8
LBB0_3:
	str	xzr, [x19, #8]
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #32]
	blr	x8
	str	xzr, [x19, #40]
LBB0_5:
	str	wzr, [x19]
LBB0_6:
Lloh4:
	adrp	x24, _WPA_PRIV_MAX_L2@GOTPAGE
Lloh5:
	ldr	x24, [x24, _WPA_PRIV_MAX_L2@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x25, #0
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #56]
	ldr	x9, [x9, x25, lsl #3]
	cbz	x9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23]
	mov	x1, x22
	bl	_wpa_printf
	ldr	x8, [x19, #56]
	lsl	x26, x25, #3
	ldr	x0, [x8, x26]
	bl	_l2_packet_deinit
	ldr	x8, [x19, #56]
	str	xzr, [x8, x26]
	ldr	w8, [x24]
	b	LBB0_8
LBB0_11:
	ldr	x9, [x19, #16]
	ldr	x8, [x9, #16]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	x9, [x9, #24]
	cbz	x9, LBB0_17
; %bb.13:
	ldr	w0, [x19, #48]
	blr	x9
	str	x0, [x19, #40]
	cbz	x0, LBB0_24
; %bb.14:
	mov	x2, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	b	LBB0_18
LBB0_15:
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_22
; %bb.16:
	ldr	w1, [x19, #32]
	mov	x0, x19
	blr	x8
	b	LBB0_19
LBB0_17:
	mov	x2, #0
	str	xzr, [x19, #40]
LBB0_18:
	ldr	w1, [x19, #32]
	mov	x0, x19
	blr	x8
LBB0_19:
	mov	x8, x0
	str	x0, [x19, #8]
	ldr	w0, [x23]
	cbz	x8, LBB0_23
; %bb.20:
	ldp	w9, w8, [x19, #32]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	add	x0, x19, #28
	mov	x1, x21
	mov	x2, x20
	bl	_os_memcpy
	str	w20, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	x0, [x19, #8]
	mov	x1, #0
	blr	x8
	tbnz	x0, #63, LBB0_25
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_26
LBB0_24:
Lloh12:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_26
LBB0_25:
Lloh17:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_wpa_printf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cleaning up forgotten driver instance"

	.comm	_WPA_PRIV_MAX_L2,4,2            ; @WPA_PRIV_MAX_L2
l_.str.1:                               ; @.str.1
	.asciz	"Cleaning up forgotten l2_packet instance"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Failed to initialize driver global context"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to initialize driver wrapper"

l_.str.4:                               ; @.str.4
	.asciz	"Driver wrapper '%s' initialized for interface '%s'"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.5:                               ; @.str.5
	.asciz	"Driver interface rejected param"

	.no_dead_strip	_wpa_priv_cmd_register
.subsections_via_symbols
