	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_priv_cmd_l2_register
_wpa_priv_cmd_l2_register:              ## @wpa_priv_cmd_l2_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	cmpq	$8, %rbx
	jne	LBB0_1
## %bb.3:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ebx
	movl	%ebx, %edi
	callq	_wpa_priv_allowed_l2_proto
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	_WPA_PRIV_MAX_L2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.13:
	movq	8(%r13), %rcx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%r15,8)
	je	LBB0_6
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r15
	cmpq	%r15, %rax
	jne	LBB0_14
	jmp	LBB0_16
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	movl	%ebx, %edx
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	cmpl	%eax, %r15d
	jne	LBB0_7
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_7:
	movl	%r15d, %r12d
	leaq	(,%r12,4), %rdi
	addq	40(%r13), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_os_memcpy
	movq	32(%r13), %rax
	movl	%ebx, (%rax,%r12,4)
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	16(%r13), %rax
	movq	%r12, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r8
	movl	%r15d, (%rax,%rcx)
	movq	%r13, 8(%rax,%rcx)
	movl	24(%r13), %edi
	movq	_wpa_priv_l2_rx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%r14), %r9d
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_l2_packet_init
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.18:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_l2_packet_get_own_addr
	testq	%rax, %rax
	js	LBB0_19
## %bb.20:
	movl	(%r13), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_sendto
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_21
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_19:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_l2_packet_deinit
	movq	8(%r13), %rax
	movq	$0, (%rax,%r12,8)
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid l2_register length %lu"

L_.str.1:                               ## @.str.1
	.asciz	"Refused l2_packet connection for ethertype 0x%x"

	.comm	_WPA_PRIV_MAX_L2,4,2            ## @WPA_PRIV_MAX_L2
L_.str.2:                               ## @.str.2
	.asciz	"No free l2_packet connection found"

	.comm	_wpa_priv_l2_rx,4,2             ## @wpa_priv_l2_rx
L_.str.3:                               ## @.str.3
	.asciz	"Failed to initialize l2_packet instance for protocol %d"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to get own address from l2_packet"

L_.str.5:                               ## @.str.5
	.asciz	"L2 registration[idx=%d]: res=%d"

	.no_dead_strip	_wpa_priv_cmd_l2_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_l2_register
_wpa_priv_cmd_l2_register:              ; @wpa_priv_cmd_l2_register
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	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, #-88]
Lloh3:
	adrp	x25, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cmp	x4, #8
	b.ne	LBB0_6
; %bb.1:
	ldr	w23, [x24]
	mov	x0, x23
	bl	_wpa_priv_allowed_l2_proto
	cbz	w0, LBB0_7
; %bb.2:
Lloh7:
	adrp	x8, _WPA_PRIV_MAX_L2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WPA_PRIV_MAX_L2@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x26, #0
	ldr	x9, [x19, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x26, lsl #3]
	cbz	x10, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	cmp	x8, x26
	b.ne	LBB0_4
	b	LBB0_13
LBB0_6:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x4, [sp, #-16]!
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	str	x23, [sp, #-16]!
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.10:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w26, #0
LBB0_12:
	cmp	w26, w8
	b.ne	LBB0_15
LBB0_13:
Lloh23:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.14:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_wpa_printf
LBB0_15:
	ldr	x8, [x19, #40]
	mov	w27, w26
	lsl	x28, x27, #2
	add	x0, x8, x28
	mov	x1, x21
	mov	x2, x20
	bl	_os_memcpy
	ldr	x8, [x19, #32]
	str	w20, [x8, x28]
	ldr	x8, [x19, #16]
	add	x4, x8, w26, uxtw #4
	str	w26, [x4]
	str	x19, [x4, #8]
	ldr	w0, [x19, #24]
Lloh31:
	adrp	x8, _wpa_priv_l2_rx@GOTPAGE
Lloh32:
	ldr	x8, [x8, _wpa_priv_l2_rx@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	ldr	w5, [x24, #4]
	mov	x1, #0
	mov	x2, x23
	bl	_l2_packet_init
	ldr	x8, [x19, #8]
	lsl	x24, x27, #3
	str	x0, [x8, x24]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x24]
	cbz	x0, LBB0_18
; %bb.16:
	mov	x1, x22
	bl	_l2_packet_get_own_addr
	tbnz	x0, #63, LBB0_19
; %bb.17:
	ldr	w0, [x19]
	ldr	w2, [x25]
	mov	x1, x22
	mov	w3, #0
	mov	x4, x21
	mov	x5, x20
	bl	_sendto
                                        ; kill: def $w0 killed $w0 def $x0
Lloh34:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	stp	x26, x0, [sp, #-16]!
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x8
	b	LBB0_8
LBB0_18:
Lloh39:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp, #-16]!
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_19:
Lloh44:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x1, l_.str.4@PAGE
Lloh48:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x24]
	bl	_l2_packet_deinit
	ldr	x8, [x19, #8]
	str	xzr, [x8, x24]
	b	LBB0_9
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid l2_register length %lu"

l_.str.1:                               ; @.str.1
	.asciz	"Refused l2_packet connection for ethertype 0x%x"

	.comm	_WPA_PRIV_MAX_L2,4,2            ; @WPA_PRIV_MAX_L2
l_.str.2:                               ; @.str.2
	.asciz	"No free l2_packet connection found"

	.comm	_wpa_priv_l2_rx,4,2             ; @wpa_priv_l2_rx
l_.str.3:                               ; @.str.3
	.asciz	"Failed to initialize l2_packet instance for protocol %d"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to get own address from l2_packet"

l_.str.5:                               ; @.str.5
	.asciz	"L2 registration[idx=%d]: res=%d"

	.no_dead_strip	_wpa_priv_cmd_l2_register
.subsections_via_symbols
