	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_build_challenge
_eap_aka_build_challenge:               ## @eap_aka_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, %r12
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rdx
	movq	_EAP_AKA_SUBTYPE_CHALLENGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	callq	_eap_sim_msg_init
	movq	%rax, %r14
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_AT_RAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r12), %rcx
	movq	_EAP_AKA_RAND_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_eap_sim_msg_add
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_AT_AUTN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r12), %rcx
	movq	_EAP_AKA_AUTN_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_eap_sim_msg_add
	movq	(%r12), %rax
	movq	_EAP_TYPE_AKA_PRIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 32(%r12)
	je	LBB0_3
## %bb.2:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_AT_KDF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r12), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_add
LBB0_3:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_AT_KDF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_AKA_PRIME_KDF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_add
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_AT_KDF_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rdx
	movq	24(%r12), %rcx
	movq	%r14, %rdi
	movq	%rdx, %r8
	callq	_eap_sim_msg_add
LBB0_4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_aka_build_encr
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%r14, %rdi
	callq	_eap_sim_msg_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_eap_aka_add_checkcode
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.6:
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_AT_RESULT_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_add
LBB0_7:
	movl	(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_AT_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_sim_msg_add_mac
	movq	(%r12), %rsi
	movl	8(%r12), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_sim_msg_finish             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-AKA: Generating Challenge"

	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_EAP_AKA_SUBTYPE_CHALLENGE,4,2  ## @EAP_AKA_SUBTYPE_CHALLENGE
L_.str.1:                               ## @.str.1
	.asciz	"   AT_RAND"

	.comm	_EAP_SIM_AT_RAND,4,2            ## @EAP_SIM_AT_RAND
	.comm	_EAP_AKA_RAND_LEN,8,3           ## @EAP_AKA_RAND_LEN
L_.str.2:                               ## @.str.2
	.asciz	"   AT_AUTN"

	.comm	_EAP_SIM_AT_AUTN,4,2            ## @EAP_SIM_AT_AUTN
	.comm	_EAP_AKA_AUTN_LEN,8,3           ## @EAP_AKA_AUTN_LEN
	.comm	_EAP_TYPE_AKA_PRIME,8,3         ## @EAP_TYPE_AKA_PRIME
L_.str.3:                               ## @.str.3
	.asciz	"   AT_KDF"

	.comm	_EAP_SIM_AT_KDF,4,2             ## @EAP_SIM_AT_KDF
	.comm	_EAP_AKA_PRIME_KDF,8,3          ## @EAP_AKA_PRIME_KDF
L_.str.4:                               ## @.str.4
	.asciz	"   AT_KDF_INPUT"

	.comm	_EAP_SIM_AT_KDF_INPUT,4,2       ## @EAP_SIM_AT_KDF_INPUT
L_.str.5:                               ## @.str.5
	.asciz	"   AT_RESULT_IND"

	.comm	_EAP_SIM_AT_RESULT_IND,4,2      ## @EAP_SIM_AT_RESULT_IND
L_.str.6:                               ## @.str.6
	.asciz	"   AT_MAC"

	.comm	_EAP_SIM_AT_MAC,4,2             ## @EAP_SIM_AT_MAC
	.comm	_EAP_AKA_BIDDING_FLAG_D,8,3     ## @EAP_AKA_BIDDING_FLAG_D
	.comm	_EAP_MAX_METHODS,4,2            ## @EAP_MAX_METHODS
	.comm	_EAP_SIM_AT_BIDDING,4,2         ## @EAP_SIM_AT_BIDDING
	.comm	_EAP_TYPE_AKA,8,3               ## @EAP_TYPE_AKA
	.comm	_EAP_TYPE_NONE,8,3              ## @EAP_TYPE_NONE
	.comm	_EAP_VENDOR_IETF,8,3            ## @EAP_VENDOR_IETF
	.no_dead_strip	_eap_aka_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_aka_build_challenge
_eap_aka_build_challenge:               ; @eap_aka_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	x20, x2
	mov	x19, x1
	mov	x21, 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
Lloh4:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh7:
	adrp	x8, _EAP_AKA_SUBTYPE_CHALLENGE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAP_AKA_SUBTYPE_CHALLENGE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_eap_sim_msg_init
	mov	x20, x0
	ldr	w0, [x22]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh12:
	adrp	x8, _EAP_SIM_AT_RAND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_SIM_AT_RAND@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x3, [x19, #48]
Lloh15:
	adrp	x8, _EAP_AKA_RAND_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAP_AKA_RAND_LEN@GOTPAGEOFF]
Lloh17:
	ldr	x4, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_eap_sim_msg_add
	ldr	w0, [x22]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh20:
	adrp	x8, _EAP_SIM_AT_AUTN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAP_SIM_AT_AUTN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	x3, [x19, #40]
Lloh23:
	adrp	x8, _EAP_AKA_AUTN_LEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAP_AKA_AUTN_LEN@GOTPAGEOFF]
Lloh25:
	ldr	x4, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_eap_sim_msg_add
	ldr	x8, [x19]
Lloh26:
	adrp	x9, _EAP_TYPE_AKA_PRIME@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EAP_TYPE_AKA_PRIME@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #32]
Lloh29:
	adrp	x23, _EAP_SIM_AT_KDF@GOTPAGE
Lloh30:
	ldr	x23, [x23, _EAP_SIM_AT_KDF@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x22]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	w1, [x23]
	ldr	x2, [x19, #32]
	mov	x0, x20
	mov	x3, #0
	mov	x4, #0
	bl	_eap_sim_msg_add
LBB0_3:
	ldr	w0, [x22]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	w1, [x23]
Lloh35:
	adrp	x8, _EAP_AKA_PRIME_KDF@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EAP_AKA_PRIME_KDF@GOTPAGEOFF]
Lloh37:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	x4, #0
	bl	_eap_sim_msg_add
	ldr	w0, [x22]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh40:
	adrp	x8, _EAP_SIM_AT_KDF_INPUT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EAP_SIM_AT_KDF_INPUT@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldp	x2, x3, [x19, #16]
	mov	x0, x20
	mov	x4, x2
	bl	_eap_sim_msg_add
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	mov	x4, #0
	bl	_eap_aka_build_encr
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_eap_sim_msg_free
	mov	x0, #0
	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:
	mov	x0, x19
	mov	x1, x20
	bl	_eap_aka_add_checkcode
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x22]
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh45:
	adrp	x8, _EAP_SIM_AT_RESULT_IND@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EAP_SIM_AT_RESULT_IND@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_eap_sim_msg_add
LBB0_8:
	ldr	w0, [x22]
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
Lloh50:
	adrp	x8, _EAP_SIM_AT_MAC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EAP_SIM_AT_MAC@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_eap_sim_msg_add_mac
	ldr	x1, [x19]
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	x3, #0
	mov	w4, #0
	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
	b	_eap_sim_msg_finish
	.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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-AKA: Generating Challenge"

	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_EAP_AKA_SUBTYPE_CHALLENGE,4,2  ; @EAP_AKA_SUBTYPE_CHALLENGE
l_.str.1:                               ; @.str.1
	.asciz	"   AT_RAND"

	.comm	_EAP_SIM_AT_RAND,4,2            ; @EAP_SIM_AT_RAND
	.comm	_EAP_AKA_RAND_LEN,8,3           ; @EAP_AKA_RAND_LEN
l_.str.2:                               ; @.str.2
	.asciz	"   AT_AUTN"

	.comm	_EAP_SIM_AT_AUTN,4,2            ; @EAP_SIM_AT_AUTN
	.comm	_EAP_AKA_AUTN_LEN,8,3           ; @EAP_AKA_AUTN_LEN
	.comm	_EAP_TYPE_AKA_PRIME,8,3         ; @EAP_TYPE_AKA_PRIME
l_.str.3:                               ; @.str.3
	.asciz	"   AT_KDF"

	.comm	_EAP_SIM_AT_KDF,4,2             ; @EAP_SIM_AT_KDF
	.comm	_EAP_AKA_PRIME_KDF,8,3          ; @EAP_AKA_PRIME_KDF
l_.str.4:                               ; @.str.4
	.asciz	"   AT_KDF_INPUT"

	.comm	_EAP_SIM_AT_KDF_INPUT,4,2       ; @EAP_SIM_AT_KDF_INPUT
l_.str.5:                               ; @.str.5
	.asciz	"   AT_RESULT_IND"

	.comm	_EAP_SIM_AT_RESULT_IND,4,2      ; @EAP_SIM_AT_RESULT_IND
l_.str.6:                               ; @.str.6
	.asciz	"   AT_MAC"

	.comm	_EAP_SIM_AT_MAC,4,2             ; @EAP_SIM_AT_MAC
	.comm	_EAP_AKA_BIDDING_FLAG_D,8,3     ; @EAP_AKA_BIDDING_FLAG_D
	.comm	_EAP_MAX_METHODS,4,2            ; @EAP_MAX_METHODS
	.comm	_EAP_SIM_AT_BIDDING,4,2         ; @EAP_SIM_AT_BIDDING
	.comm	_EAP_TYPE_AKA,8,3               ; @EAP_TYPE_AKA
	.comm	_EAP_TYPE_NONE,8,3              ; @EAP_TYPE_NONE
	.comm	_EAP_VENDOR_IETF,8,3            ; @EAP_VENDOR_IETF
	.no_dead_strip	_eap_aka_build_challenge
.subsections_via_symbols
