	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_md5_buildReq
_eap_md5_buildReq:                      ## @eap_md5_buildReq
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movl	8(%rsi), %edi
	movq	_CHALLENGE_LEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_MD5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	incq	%rdx
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	(%r15), %rsi
	movq	%rax, %rdi
	callq	_wpabuf_put_u8
	movl	8(%r14), %esi
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	callq	_wpabuf_put_data
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump
	movq	_CONTINUE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_CHALLENGE_LEN,8,3              ## @CHALLENGE_LEN
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-MD5: Failed to get random data"

	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MD5,4,2               ## @EAP_TYPE_MD5
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
L_.str.1:                               ## @.str.1
	.asciz	"EAP-MD5: Failed to allocate memory for request"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.2:                               ## @.str.2
	.asciz	"EAP-MD5: Challenge"

	.comm	_CONTINUE,8,3                   ## @CONTINUE
	.no_dead_strip	_eap_md5_buildReq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_md5_buildReq
_eap_md5_buildReq:                      ; @eap_md5_buildReq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	ldr	w0, [x1, #8]
Lloh0:
	adrp	x21, _CHALLENGE_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CHALLENGE_LEN@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_random_get_bytes
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x20, #0
LBB0_2:
Lloh7:
	adrp	x8, _FAILURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _EAP_TYPE_MD5@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_TYPE_MD5@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x8, [x21]
	add	x2, x8, #1
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_6
; %bb.4:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_wpabuf_put_u8
	ldr	w1, [x19, #8]
	ldr	x2, [x21]
	mov	x0, x20
	bl	_wpabuf_put_data
Lloh18:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
	ldr	x3, [x21]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump
Lloh23:
	adrp	x8, _CONTINUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CONTINUE@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh25:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CHALLENGE_LEN,8,3              ; @CHALLENGE_LEN
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-MD5: Failed to get random data"

	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MD5,4,2               ; @EAP_TYPE_MD5
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
l_.str.1:                               ; @.str.1
	.asciz	"EAP-MD5: Failed to allocate memory for request"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.2:                               ; @.str.2
	.asciz	"EAP-MD5: Challenge"

	.comm	_CONTINUE,8,3                   ; @CONTINUE
	.no_dead_strip	_eap_md5_buildReq
.subsections_via_symbols
