	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_priv_l2_rx
_wpa_priv_l2_rx:                        ## @wpa_priv_l2_rx
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	8(%rdi), %rbx
	movq	%rsi, -56(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	leaq	-88(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_os_memset
	leaq	-64(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$2, -88(%rbp)
	movq	(%r15), %rax
	leaq	(,%rax,4), %rcx
	addq	16(%rbx), %rcx
	movq	%rcx, -80(%rbp)
	movq	8(%rbx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -84(%rbp)
	movl	(%rbx), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sendmsg
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendmsg(l2 rx): %s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_wpa_priv_l2_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_priv_l2_rx
_wpa_priv_l2_rx:                        ; @wpa_priv_l2_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	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]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
	ldr	x20, [x0, #8]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x1, [sp, #24]
	stp	x3, x2, [sp, #40]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_os_memset
	add	x8, sp, #24
	str	x8, [sp, #16]
	mov	w8, #2
	str	w8, [sp]
	ldr	x8, [x20, #16]
	ldr	x9, [x19]
	lsl	x9, x9, #2
	add	x8, x8, x9
	str	x8, [sp, #8]
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x9]
	str	w8, [sp, #4]
	ldr	w0, [x20]
	mov	x1, sp
	mov	w2, #0
	bl	_sendmsg
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendmsg(l2 rx): %s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_wpa_priv_l2_rx
.subsections_via_symbols
