	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_validate_pd_payload_2
_eap_gpsk_validate_pd_payload_2:        ## @eap_gpsk_validate_pd_payload_2
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdx, %rax
	subq	%rsi, %rax
	cmpq	$7, %rax
	jg	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_WPA_GET_BE16
	addq	$8, %rbx
	subq	%rbx, %r14
	sarq	$2, %r14
	movslq	%eax, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpq	%r15, %r14
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_wpa_hexdump
	leaq	(%rbx,%r15,4), %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GPSK: Message too short for PD_Payload_2 length"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: Message too short for %d-octet PD_Payload_2"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-GPSK: PD_Payload_2"

	.no_dead_strip	_eap_gpsk_validate_pd_payload_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_gpsk_validate_pd_payload_2
_eap_gpsk_validate_pd_payload_2:        ; @eap_gpsk_validate_pd_payload_2
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	sub	x8, x2, x1
	cmp	x8, #7
	b.gt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	x0, #0
	b	LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_WPA_GET_BE16
                                        ; kill: def $w0 killed $w0 def $x0
	add	x20, x20, #8
	sub	x8, x19, x20
	sxtw	x19, w0
Lloh5:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	cmp	x19, x8, asr #2
	b.le	LBB0_7
; %bb.5:
	str	x19, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_wpa_printf
	mov	x0, #0
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_wpa_hexdump
	add	x0, x20, x19, lsl #2
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Message too short for PD_Payload_2 length"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: Message too short for %d-octet PD_Payload_2"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-GPSK: PD_Payload_2"

	.no_dead_strip	_eap_gpsk_validate_pd_payload_2
.subsections_via_symbols
