	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_priv_cmd_l2_send
_wpa_priv_cmd_l2_send:                  ## @wpa_priv_cmd_l2_send
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_WPA_PRIV_MAX_L2@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r13d
	movq	%rsi, %r15
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	cmpl	%r13d, (%rax,%rbx,4)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(,%rbx,4), %rdi
	addq	8(%r12), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_os_memcmp
	movl	(%r14), %ecx
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	cmpl	%ecx, %ebx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_7
## %bb.13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_7:
	movq	(%r12), %rax
	movl	%ebx, %r14d
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_12
## %bb.8:
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	movslq	(%r15), %rsi
	leaq	2(%rsi), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	jbe	LBB0_9
## %bb.14:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_9:
	addq	%r13, %rsi
	leaq	-44(%rbp), %rdi
	movl	$2, %edx
	callq	_os_memcpy
	movl	-44(%rbp), %edi
	callq	_wpa_priv_allowed_l2_proto
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	movl	-44(%rbp), %edx
	movslq	(%r15), %rax
	leaq	(%rax,%r13), %rcx
	addq	$2, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	subq	%rax, %r8
	addq	$-2, %r8
	movq	%r13, %rsi
	callq	_l2_packet_send
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_PRIV_MAX_L2,4,2            ## @WPA_PRIV_MAX_L2
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No registered l2_packet socket found for send request"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"Too short L2 send packet (len=%lu)"

L_.str.2:                               ## @.str.2
	.asciz	"Refused l2_packet send for ethertype 0x%x"

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

	.no_dead_strip	_wpa_priv_cmd_l2_send
.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_send
_wpa_priv_cmd_l2_send:                  ; @wpa_priv_cmd_l2_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x4
	mov	x20, x3
	mov	x21, x0
Lloh0:
	adrp	x25, _WPA_PRIV_MAX_L2@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WPA_PRIV_MAX_L2@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, x2
	mov	x23, x1
	mov	x24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	ldr	w9, [x9, x24, lsl #2]
	cmp	w9, w22
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x24, lsl #2
	mov	x1, x23
	mov	x2, x22
	bl	_os_memcmp
	ldr	w8, [x25]
	cbnz	x0, LBB0_2
LBB0_5:
	cmp	w24, w8
	b.ne	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_wpa_printf
LBB0_7:
	mov	w24, #0
	cmp	w24, w8
	b.eq	LBB0_6
LBB0_8:
	ldr	x8, [x21]
	ldr	x8, [x8, w24, uxtw #3]
	cbz	x8, LBB0_15
; %bb.9:
Lloh7:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x9, x8, #2
	cmp	x9, x19
	b.ls	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_11:
	add	x1, x20, x8
	add	x0, sp, #28
	mov	w2, #2
	bl	_os_memcpy
	ldr	w0, [sp, #28]
	bl	_wpa_priv_allowed_l2_proto
	cbz	w0, LBB0_13
; %bb.12:
	mov	w8, w24
	ldr	x9, [x21]
	ldr	x0, [x9, x8, lsl #3]
	ldr	w2, [sp, #28]
	ldrsw	x8, [x22]
	add	x9, x20, x8
	add	x3, x9, #2
	sub	x8, x19, x8
	sub	x4, x8, #2
	mov	x1, x20
	bl	_l2_packet_send
                                        ; kill: def $w0 killed $w0 def $x0
Lloh14:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	stp	x24, x0, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	bl	_wpa_printf
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_PRIV_MAX_L2,4,2            ; @WPA_PRIV_MAX_L2
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No registered l2_packet socket found for send request"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"Too short L2 send packet (len=%lu)"

l_.str.2:                               ; @.str.2
	.asciz	"Refused l2_packet send for ethertype 0x%x"

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

	.no_dead_strip	_wpa_priv_cmd_l2_send
.subsections_via_symbols
