	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_get_emsk
_eap_ttls_get_emsk:                     ## @eap_ttls_get_emsk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rdx, %rbx
	movq	_EAP_TLS_KEY_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_os_memdup
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TLS_KEY_LEN,4,2            ## @EAP_TLS_KEY_LEN
	.comm	_EAP_EMSK_LEN,8,3               ## @EAP_EMSK_LEN
	.no_dead_strip	_eap_ttls_get_emsk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_get_emsk
_eap_ttls_get_emsk:                     ; @eap_ttls_get_emsk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x9, _EAP_TLS_KEY_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EAP_TLS_KEY_LEN@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
Lloh3:
	adrp	x20, _EAP_EMSK_LEN@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EAP_EMSK_LEN@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_os_memdup
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TLS_KEY_LEN,4,2            ; @EAP_TLS_KEY_LEN
	.comm	_EAP_EMSK_LEN,8,3               ; @EAP_EMSK_LEN
	.no_dead_strip	_eap_ttls_get_emsk
.subsections_via_symbols
