	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sake_build_challenge
_eap_sake_build_challenge:              ## @eap_sake_build_challenge
	.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, %r15
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	(%r15), %edi
	movq	_EAP_SAKE_RAND_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_3:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movl	(%r13), %ecx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump
	movslq	(%r13), %rax
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx), %rdx
	addq	$4, %rdx
	movq	_EAP_SAKE_SUBTYPE_CHALLENGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_eap_sake_build_msg
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SAKE_AT_RAND_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	callq	_eap_sake_add_attr
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SAKE_AT_SERVERID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_eap_sake_add_attr
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %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-SAKE: Request/Challenge"

	.comm	_EAP_SAKE_RAND_LEN,4,2          ## @EAP_SAKE_RAND_LEN
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SAKE: Failed to get random data"

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

	.comm	_EAP_SAKE_SUBTYPE_CHALLENGE,4,2 ## @EAP_SAKE_SUBTYPE_CHALLENGE
L_.str.3:                               ## @.str.3
	.asciz	"EAP-SAKE: * AT_RAND_S"

	.comm	_EAP_SAKE_AT_RAND_S,4,2         ## @EAP_SAKE_AT_RAND_S
L_.str.4:                               ## @.str.4
	.asciz	"EAP-SAKE: * AT_SERVERID"

	.comm	_EAP_SAKE_AT_SERVERID,4,2       ## @EAP_SAKE_AT_SERVERID
	.no_dead_strip	_eap_sake_build_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sake_build_challenge
_eap_sake_build_challenge:              ; @eap_sake_build_challenge
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x20]
Lloh4:
	adrp	x23, _EAP_SAKE_RAND_LEN@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EAP_SAKE_RAND_LEN@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_random_get_bytes
	cbz	x0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x21, #0
LBB0_2:
Lloh11:
	adrp	x8, _FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w2, [x20]
	ldr	w3, [x23]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump
	ldrsw	x8, [x23]
	ldrsw	x9, [x19]
	add	x8, x8, x9
	add	x2, x8, #4
Lloh19:
	adrp	x8, _EAP_SAKE_SUBTYPE_CHALLENGE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAP_SAKE_SUBTYPE_CHALLENGE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_eap_sake_build_msg
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.4:
	ldr	w0, [x22]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh24:
	adrp	x8, _EAP_SAKE_AT_RAND_S@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EAP_SAKE_AT_RAND_S@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x20]
	ldr	w3, [x23]
	mov	x0, x21
	bl	_eap_sake_add_attr
	ldr	w0, [x22]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh29:
	adrp	x8, _EAP_SAKE_AT_SERVERID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EAP_SAKE_AT_SERVERID@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldp	w3, w2, [x19]
	mov	x0, x21
	bl	_eap_sake_add_attr
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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SAKE: Request/Challenge"

	.comm	_EAP_SAKE_RAND_LEN,4,2          ; @EAP_SAKE_RAND_LEN
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SAKE: Failed to get random data"

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

	.comm	_EAP_SAKE_SUBTYPE_CHALLENGE,4,2 ; @EAP_SAKE_SUBTYPE_CHALLENGE
l_.str.3:                               ; @.str.3
	.asciz	"EAP-SAKE: * AT_RAND_S"

	.comm	_EAP_SAKE_AT_RAND_S,4,2         ; @EAP_SAKE_AT_RAND_S
l_.str.4:                               ; @.str.4
	.asciz	"EAP-SAKE: * AT_SERVERID"

	.comm	_EAP_SAKE_AT_SERVERID,4,2       ; @EAP_SAKE_AT_SERVERID
	.no_dead_strip	_eap_sake_build_challenge
.subsections_via_symbols
