	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_psk_build_1
_eap_psk_build_1:                       ## @eap_psk_build_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, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	(%r12), %edi
	movq	_EAP_PSK_RAND_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_3
## %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, 8(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	movl	(%r13), %ecx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	addq	$8, %rdx
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_wpabuf_put
	movq	%rax, %r15
	xorl	%edi, %edi
	callq	_EAP_PSK_FLAGS_SET_T
	movl	%eax, 4(%r15)
	movl	(%r15), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	callq	_os_memcpy
	movl	8(%r14), %esi
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	callq	_wpabuf_put_data
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PSK: PSK-1 (sending)"

	.comm	_EAP_PSK_RAND_LEN,4,2           ## @EAP_PSK_RAND_LEN
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PSK: Failed to get random data"

	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.2:                               ## @.str.2
	.asciz	"EAP-PSK: RAND_S (server rand)"

	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PSK,4,2               ## @EAP_TYPE_PSK
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PSK: Failed to allocate memory request"

	.no_dead_strip	_eap_psk_build_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_psk_build_1
_eap_psk_build_1:                       ; @eap_psk_build_1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
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	w0, [x19]
Lloh5:
	adrp	x23, _EAP_PSK_RAND_LEN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _EAP_PSK_RAND_LEN@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_random_get_bytes
	cbz	x0, LBB0_3
; %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	x21, #0
LBB0_2:
Lloh12:
	adrp	x8, _FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w2, [x19]
	ldr	w3, [x23]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump
Lloh20:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _EAP_TYPE_PSK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAP_TYPE_PSK@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x8, [x20]
	add	x2, x8, #8
Lloh26:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x4, x21
	bl	_eap_msg_alloc
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	mov	w1, #8
	bl	_wpabuf_put
	mov	x22, x0
	mov	w0, #0
	bl	_EAP_PSK_FLAGS_SET_T
	str	w0, [x22, #4]
	ldr	w0, [x22]
	ldr	w1, [x19]
	ldr	w2, [x23]
	bl	_os_memcpy
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
	mov	x0, x21
	bl	_wpabuf_put_data
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh29:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	b	LBB0_2
	.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	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PSK: PSK-1 (sending)"

	.comm	_EAP_PSK_RAND_LEN,4,2           ; @EAP_PSK_RAND_LEN
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PSK: Failed to get random data"

	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.2:                               ; @.str.2
	.asciz	"EAP-PSK: RAND_S (server rand)"

	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PSK,4,2               ; @EAP_TYPE_PSK
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PSK: Failed to allocate memory request"

	.no_dead_strip	_eap_psk_build_1
.subsections_via_symbols
