	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibss_rsn_eapol_dst_supp
_ibss_rsn_eapol_dst_supp:               ## @ibss_rsn_eapol_dst_supp
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpq	$40, %rsi
	jb	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_be_to_host16
	movq	8(%r15), %rdx
	movq	_IEEE802_1X_TYPE_EAPOL_KEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_2
## %bb.4:
	leaq	-24(%rbx), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_6
## %bb.5:
	cmpq	$15, %rax
	jbe	LBB0_6
## %bb.7:
	movq	24(%r15), %rdx
	movq	_EAPOL_KEY_TYPE_RSN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_8
## %bb.9:
	movl	32(%r15), %edi
	callq	_WPA_GET_BE16
	movq	_WPA_KEY_INFO_ACK@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	setne	%r14b
	jmp	LBB0_10
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EAPOL_VERSION,8,3              ## @EAPOL_VERSION
	.comm	_IEEE802_1X_TYPE_EAPOL_KEY,8,3  ## @IEEE802_1X_TYPE_EAPOL_KEY
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSN: EAPOL frame (type %u) discarded, not a Key frame"

L_.str.1:                               ## @.str.1
	.asciz	"RSN: EAPOL frame payload size %lu invalid (frame size %lu)"

	.comm	_EAPOL_KEY_TYPE_RSN,8,3         ## @EAPOL_KEY_TYPE_RSN
L_.str.2:                               ## @.str.2
	.asciz	"RSN: EAPOL-Key type (%d) unknown, discarded"

	.comm	_WPA_KEY_INFO_ACK,4,2           ## @WPA_KEY_INFO_ACK
	.no_dead_strip	_ibss_rsn_eapol_dst_supp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibss_rsn_eapol_dst_supp
_ibss_rsn_eapol_dst_supp:               ; @ibss_rsn_eapol_dst_supp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	x1, #40
	b.lo	LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_be_to_host16
	ldr	x2, [x19, #8]
Lloh0:
	adrp	x9, _IEEE802_1X_TYPE_EAPOL_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE802_1X_TYPE_EAPOL_KEY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x2, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x8, x0
	sub	x9, x20, #24
	cmp	x0, x9
	ccmp	x0, #15, #0, ls
	b.hi	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x8
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:
	ldr	x2, [x19, #24]
Lloh13:
	adrp	x8, _EAPOL_KEY_TYPE_RSN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAPOL_KEY_TYPE_RSN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x19, #32]
	bl	_WPA_GET_BE16
Lloh16:
	adrp	x8, _WPA_KEY_INFO_ACK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WPA_KEY_INFO_ACK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	b	LBB0_10
LBB0_7:
Lloh19:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_wpa_printf
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EAPOL_VERSION,8,3              ; @EAPOL_VERSION
	.comm	_IEEE802_1X_TYPE_EAPOL_KEY,8,3  ; @IEEE802_1X_TYPE_EAPOL_KEY
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSN: EAPOL frame (type %u) discarded, not a Key frame"

l_.str.1:                               ; @.str.1
	.asciz	"RSN: EAPOL frame payload size %lu invalid (frame size %lu)"

	.comm	_EAPOL_KEY_TYPE_RSN,8,3         ; @EAPOL_KEY_TYPE_RSN
l_.str.2:                               ; @.str.2
	.asciz	"RSN: EAPOL-Key type (%d) unknown, discarded"

	.comm	_WPA_KEY_INFO_ACK,4,2           ; @WPA_KEY_INFO_ACK
	.no_dead_strip	_ibss_rsn_eapol_dst_supp
.subsections_via_symbols
