	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_pax_build_std_3
_eap_pax_build_std_3:                   ## @eap_pax_build_std_3
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_PAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_PAX_MAC_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_EAP_PAX_ICV_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	34(%rax,%rcx), %edx
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_wpabuf_put
	movq	_EAP_PAX_OP_STD_3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	$0, 16(%rax)
	movl	12(%r14), %ecx
	movl	%ecx, 8(%rax)
	movq	_EAP_PAX_DH_GROUP_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_EAP_PAX_PUBLIC_KEY_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_be16
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put
	movq	%rax, %r15
	movl	36(%r14), %esi
	movq	_EAP_PAX_CK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	32(%r14), %ecx
	movq	_EAP_PAX_RAND_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	24(%r14), %r9
	movl	12(%r14), %edi
	movl	16(%r14), %eax
	pushq	%r15
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_eap_pax_mac
	addq	$32, %rsp
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%r14), %r13d
	movq	_EAP_PAX_ICK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_wpabuf_mhead
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	_EAP_PAX_ICV_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	subq	%rcx, %rax
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r12d, %ecx
	movq	%rax, %r8
	xorl	%r9d, %r9d
	pushq	%r15
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_eap_pax_mac
	addq	$32, %rsp
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_PAX_ICV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_9
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_7:
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_wpabuf_free
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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-PAX: PAX_STD-3 (sending)"

	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PAX,4,2               ## @EAP_TYPE_PAX
	.comm	_EAP_PAX_MAC_LEN,4,2            ## @EAP_PAX_MAC_LEN
	.comm	_EAP_PAX_ICV_LEN,4,2            ## @EAP_PAX_ICV_LEN
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PAX: Failed to allocate memory request"

	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_EAP_PAX_OP_STD_3,4,2           ## @EAP_PAX_OP_STD_3
	.comm	_EAP_PAX_DH_GROUP_NONE,4,2      ## @EAP_PAX_DH_GROUP_NONE
	.comm	_EAP_PAX_PUBLIC_KEY_NONE,4,2    ## @EAP_PAX_PUBLIC_KEY_NONE
	.comm	_EAP_PAX_CK_LEN,4,2             ## @EAP_PAX_CK_LEN
	.comm	_EAP_PAX_RAND_LEN,8,3           ## @EAP_PAX_RAND_LEN
L_.str.2:                               ## @.str.2
	.asciz	"EAP-PAX: Failed to calculate MAC"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PAX: MAC_CK(B, CID)"

	.comm	_EAP_PAX_ICK_LEN,4,2            ## @EAP_PAX_ICK_LEN
L_.str.4:                               ## @.str.4
	.asciz	"EAP-PAX: Failed to calculate ICV"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-PAX: ICV"

	.no_dead_strip	_eap_pax_build_std_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_pax_build_std_3
_eap_pax_build_std_3:                   ; @eap_pax_build_std_3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x1
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
	bl	_wpa_printf
Lloh5:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _EAP_TYPE_PAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_TYPE_PAX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x22, _EAP_PAX_MAC_LEN@GOTPAGE
Lloh12:
	ldr	x22, [x22, _EAP_PAX_MAC_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh13:
	adrp	x26, _EAP_PAX_ICV_LEN@GOTPAGE
Lloh14:
	ldr	x26, [x26, _EAP_PAX_ICV_LEN@GOTPAGEOFF]
	ldr	w9, [x26]
	add	w8, w8, w9
	add	w2, w8, #34
Lloh15:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x4, x20
	bl	_eap_msg_alloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	w1, #32
	bl	_wpabuf_put
Lloh18:
	adrp	x8, _EAP_PAX_OP_STD_3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAP_PAX_OP_STD_3@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	str	xzr, [x0, #16]
	ldr	w8, [x19, #12]
	str	w8, [x0, #8]
Lloh21:
	adrp	x8, _EAP_PAX_DH_GROUP_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EAP_PAX_DH_GROUP_NONE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _EAP_PAX_PUBLIC_KEY_NONE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _EAP_PAX_PUBLIC_KEY_NONE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_wpabuf_put_be16
	ldr	w1, [x22]
	mov	x0, x20
	bl	_wpabuf_put
	mov	x21, x0
Lloh27:
	adrp	x8, _EAP_PAX_CK_LEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAP_PAX_CK_LEN@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	ldp	w3, w1, [x19, #32]
Lloh30:
	adrp	x8, _EAP_PAX_RAND_LEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EAP_PAX_RAND_LEN@GOTPAGEOFF]
Lloh32:
	ldr	x4, [x8]
	ldr	x5, [x19, #24]
	ldp	w0, w6, [x19, #12]
	str	x21, [sp, #8]
	str	wzr, [sp]
	mov	x7, #0
	bl	_eap_pax_mac
	tbnz	x0, #63, LBB0_5
; %bb.2:
Lloh33:
	adrp	x27, _MSG_MSGDUMP@GOTPAGE
Lloh34:
	ldr	x27, [x27, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x27]
	ldr	w3, [x22]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump
	ldr	w1, [x22]
	mov	x0, x20
	bl	_wpabuf_put
	mov	x21, x0
	ldp	w23, w22, [x19, #8]
Lloh37:
	adrp	x8, _EAP_PAX_ICK_LEN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EAP_PAX_ICK_LEN@GOTPAGEOFF]
Lloh39:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_wpabuf_mhead
	mov	x25, x0
	mov	x0, x20
	bl	_wpabuf_len
	ldrsw	x8, [x26]
	sub	x4, x0, x8
	str	x21, [sp, #8]
	str	wzr, [sp]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_eap_pax_mac
	tbnz	x0, #63, LBB0_6
; %bb.3:
	ldr	w0, [x27]
	ldr	w3, [x26]
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump
	b	LBB0_8
LBB0_4:
Lloh42:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh47:
	adrp	x8, _FAILURE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_8
LBB0_5:
Lloh50:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x1, l_.str.2@PAGE
Lloh54:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh55:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
Lloh58:
	adrp	x1, l_.str.4@PAGE
Lloh59:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_7:
	bl	_wpa_printf
Lloh60:
	adrp	x8, _FAILURE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	bl	_wpabuf_free
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PAX: PAX_STD-3 (sending)"

	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PAX,4,2               ; @EAP_TYPE_PAX
	.comm	_EAP_PAX_MAC_LEN,4,2            ; @EAP_PAX_MAC_LEN
	.comm	_EAP_PAX_ICV_LEN,4,2            ; @EAP_PAX_ICV_LEN
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PAX: Failed to allocate memory request"

	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_EAP_PAX_OP_STD_3,4,2           ; @EAP_PAX_OP_STD_3
	.comm	_EAP_PAX_DH_GROUP_NONE,4,2      ; @EAP_PAX_DH_GROUP_NONE
	.comm	_EAP_PAX_PUBLIC_KEY_NONE,4,2    ; @EAP_PAX_PUBLIC_KEY_NONE
	.comm	_EAP_PAX_CK_LEN,4,2             ; @EAP_PAX_CK_LEN
	.comm	_EAP_PAX_RAND_LEN,8,3           ; @EAP_PAX_RAND_LEN
l_.str.2:                               ; @.str.2
	.asciz	"EAP-PAX: Failed to calculate MAC"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PAX: MAC_CK(B, CID)"

	.comm	_EAP_PAX_ICK_LEN,4,2            ; @EAP_PAX_ICK_LEN
l_.str.4:                               ; @.str.4
	.asciz	"EAP-PAX: Failed to calculate ICV"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-PAX: ICV"

	.no_dead_strip	_eap_pax_build_std_3
.subsections_via_symbols
