	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_frame
_handle_frame:                          ## @handle_frame
	.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	%rdx, %rbx
	cmpq	$23, %rdx
	ja	LBB0_3
## %bb.1:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
LBB0_2:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_3:
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	callq	_le_to_host16
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_WLAN_FC_GET_TYPE
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_WLAN_FC_GET_STYPE
	movq	%rax, %r13
	cmpq	$128, %r12
	jne	LBB0_5
## %bb.4:
	movq	_WLAN_FC_STYPE_BEACON@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_6
LBB0_5:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_wpa_hexdump
LBB0_6:
	movq	_WLAN_FC_PVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r15d, %esi
	leal	-1(%rsi), %eax
	cmpl	$1, %eax
	ja	LBB0_7
## %bb.15:
	xorl	%ecx, %ecx
	cmpl	$2, %esi
	sete	%cl
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_tx_callback             ## TAILCALL
LBB0_7:
	testl	%esi, %esi
	je	LBB0_8
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_8:
	cmpq	$130, %r12
	je	LBB0_12
## %bb.9:
	cmpq	$129, %r12
	je	LBB0_13
## %bb.10:
	cmpq	$128, %r12
	jne	LBB0_14
## %bb.11:
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_os_memset
	movq	%r14, -56(%rbp)
	movq	%rbx, -64(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_EVENT_RX_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_wpa_supplicant_event
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%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_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_data                    ## TAILCALL
LBB0_14:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handle_frame: too short (%lu)"

	.comm	_WLAN_FC_STYPE_BEACON,8,3       ## @WLAN_FC_STYPE_BEACON
L_.str.1:                               ## @.str.1
	.asciz	"Received management frame"

	.comm	_WLAN_FC_PVER,8,3               ## @WLAN_FC_PVER
L_.str.2:                               ## @.str.2
	.asciz	"unknown protocol version %d\n"

	.comm	_EVENT_RX_MGMT,4,2              ## @EVENT_RX_MGMT
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"CTRL"

L_.str.4:                               ## @.str.4
	.asciz	"DATA"

L_.str.5:                               ## @.str.5
	.asciz	"unknown frame type %d"

	.no_dead_strip	_handle_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_frame
_handle_frame:                          ; @handle_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	cmp	x2, #23
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_wpa_printf
LBB0_3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1]
	bl	_le_to_host16
	mov	x24, x0
	bl	_WLAN_FC_GET_TYPE
	mov	x22, x0
	mov	x0, x24
	bl	_WLAN_FC_GET_STYPE
	mov	x23, x0
Lloh5:
	adrp	x8, _WLAN_FC_STYPE_BEACON@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WLAN_FC_STYPE_BEACON@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x22, #128
	ccmp	x0, x8, #0, eq
	b.eq	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_wpa_hexdump
LBB0_6:
Lloh13:
	adrp	x8, _WLAN_FC_PVER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WLAN_FC_PVER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w1, w8, w24
	sub	w8, w1, #1
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.7:
	cmp	w1, #2
	cset	w3, eq
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	add	sp, sp, #96
	b	_handle_tx_callback
LBB0_8:
	cbz	w1, LBB0_10
; %bb.9:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	add	sp, sp, #96
	b	_printf
LBB0_10:
	cmp	x22, #130
	b.eq	LBB0_14
; %bb.11:
	cmp	x22, #129
	b.eq	LBB0_15
; %bb.12:
	cmp	x22, #128
	b.ne	LBB0_16
; %bb.13:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
	stp	x19, x20, [sp, #16]
	ldr	w0, [x21]
Lloh18:
	adrp	x8, _EVENT_RX_MGMT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EVENT_RX_MGMT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_wpa_supplicant_event
	b	LBB0_3
LBB0_14:
Lloh21:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	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
	add	sp, sp, #96
	b	_wpa_printf
LBB0_15:
Lloh26:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	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
	add	sp, sp, #96
	b	_handle_data
LBB0_16:
Lloh31:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle_frame: too short (%lu)"

	.comm	_WLAN_FC_STYPE_BEACON,8,3       ; @WLAN_FC_STYPE_BEACON
l_.str.1:                               ; @.str.1
	.asciz	"Received management frame"

	.comm	_WLAN_FC_PVER,8,3               ; @WLAN_FC_PVER
l_.str.2:                               ; @.str.2
	.asciz	"unknown protocol version %d\n"

	.comm	_EVENT_RX_MGMT,4,2              ; @EVENT_RX_MGMT
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"CTRL"

l_.str.4:                               ; @.str.4
	.asciz	"DATA"

l_.str.5:                               ; @.str.5
	.asciz	"unknown frame type %d"

	.no_dead_strip	_handle_frame
.subsections_via_symbols
