	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_pax_build_std_1
_eap_pax_build_std_1:                   ## @eap_pax_build_std_1
	.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
	pushq	%rax
	.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	16(%r14), %rdi
	movq	_EAP_PAX_RAND_LEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_PAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movq	_EAP_PAX_ICV_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	34(%rax,%rcx), %rdx
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_wpabuf_put
	movq	_EAP_PAX_OP_STD_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	$0, 16(%rax)
	movl	8(%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)
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_be16
	movq	16(%r14), %rsi
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	callq	_wpabuf_put_data
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rdx
	movq	(%r15), %rcx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump
	movq	_EAP_PAX_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put
	movq	%rax, %r15
	movl	8(%r14), %r12d
	movq	%rbx, %rdi
	callq	_wpabuf_mhead
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	_EAP_PAX_ICV_LEN@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edi
	xorl	%edx, %edx
	movl	%r13d, %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_9
## %bb.7:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_PAX_ICV_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_4
LBB0_8:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_wpabuf_free
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PAX: PAX_STD-1 (sending)"

	.comm	_EAP_PAX_RAND_LEN,8,3           ## @EAP_PAX_RAND_LEN
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PAX: Failed to get random data"

	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PAX,4,2               ## @EAP_TYPE_PAX
	.comm	_EAP_PAX_ICV_LEN,8,3            ## @EAP_PAX_ICV_LEN
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
L_.str.2:                               ## @.str.2
	.asciz	"EAP-PAX: Failed to allocate memory request"

	.comm	_EAP_PAX_OP_STD_1,4,2           ## @EAP_PAX_OP_STD_1
	.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	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PAX: A = X (server rand)"

	.comm	_EAP_PAX_MAC_LEN,4,2            ## @EAP_PAX_MAC_LEN
L_.str.4:                               ## @.str.4
	.space	1

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

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

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

	.comm	_EAP_PAX_RAND_LEN,8,3           ; @EAP_PAX_RAND_LEN
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PAX: Failed to get random data"

	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PAX,4,2               ; @EAP_TYPE_PAX
	.comm	_EAP_PAX_ICV_LEN,8,3            ; @EAP_PAX_ICV_LEN
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
l_.str.2:                               ; @.str.2
	.asciz	"EAP-PAX: Failed to allocate memory request"

	.comm	_EAP_PAX_OP_STD_1,4,2           ; @EAP_PAX_OP_STD_1
	.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	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PAX: A = X (server rand)"

	.comm	_EAP_PAX_MAC_LEN,4,2            ; @EAP_PAX_MAC_LEN
l_.str.4:                               ; @.str.4
	.space	1

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

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

	.no_dead_strip	_eap_pax_build_std_1
.subsections_via_symbols
