	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_pax_kdf                    ## -- Begin function eap_pax_kdf
	.p2align	4, 0x90
_eap_pax_kdf:                           ## @eap_pax_kdf
	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	movq	%rsi, -160(%rbp)                ## 8-byte Spill
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA1_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_EAP_PAX_MAC_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	(%r15,%rbx), %r12
	decq	%r12
	movq	%r12, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rbx
	movq	%rax, %r13
	jmp	LBB0_3
LBB0_1:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %r13d
LBB0_3:
	movl	$-1, %eax
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.4:
	cmpq	$254, %r13
	ja	LBB0_12
## %bb.5:
	movq	_EAP_PAX_MAC_HMAC_SHA1_128@GOTPCREL(%rip), %rcx
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	cmpq	%rdx, (%rcx)
	jne	LBB0_12
## %bb.6:
	movq	%rdi, -80(%rbp)
	callq	_os_strlen
	movq	%rax, -112(%rbp)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -72(%rbp)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -104(%rbp)
	leaq	-120(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	$1, -96(%rbp)
	movq	$1, -120(%rbp)
	cmpq	%r12, %rbx
	ja	LBB0_11
## %bb.7:
	movq	24(%rbp), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EAP_PAX_MAC_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	movl	$3, %edx
	leaq	-80(%rbp), %rcx
	leaq	-112(%rbp), %r8
	movq	%r14, %r9
	callq	_hmac_sha1_vector
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r12, %r15
	cmovbq	%r15, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_os_memcpy
	leaq	(%rbx,%r12,8), %rbx
	subq	%r12, %r15
	movq	-120(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -120(%rbp)
	cmpq	%r13, %rax
	jl	LBB0_8
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movl	$-1, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA1_MAC_LEN,4,2               ## @SHA1_MAC_LEN
	.comm	_EAP_PAX_MAC_LEN,8,3            ## @EAP_PAX_MAC_LEN
	.comm	_EAP_PAX_MAC_HMAC_SHA1_128,8,3  ## @EAP_PAX_MAC_HMAC_SHA1_128
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_pax_kdf                    ; -- Begin function eap_pax_kdf
	.p2align	2
_eap_pax_kdf:                           ; @eap_pax_kdf
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x19, x7
	mov	x20, x6
	mov	x21, x2
	mov	x22, x1
	mov	x8, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-88]
Lloh3:
	adrp	x9, _SHA1_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SHA1_MAC_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	x12, x9, #3
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0xffffffff0
	sub	x23, x9, x10
	mov	sp, x23
	mov	w0, #-1
	cbz	x3, LBB0_8
; %bb.1:
Lloh8:
	adrp	x9, _EAP_PAX_MAC_LEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAP_PAX_MAC_LEN@GOTPAGEOFF]
Lloh10:
	ldr	x28, [x9]
	add	x9, x20, x28
	sub	x24, x9, #1
	udiv	x27, x24, x28
Lloh11:
	adrp	x9, _EAP_PAX_MAC_HMAC_SHA1_128@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EAP_PAX_MAC_HMAC_SHA1_128@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x27, #254
	ccmp	x9, x8, #0, ls
	b.ne	LBB0_8
; %bb.2:
	stur	x3, [x29, #-112]
	mov	x0, x3
	mov	x25, x4
	mov	x26, x5
	bl	_os_strlen
	stp	x0, x26, [x29, #-136]
	sub	x8, x29, #144
	stp	x25, x8, [x29, #-104]
	mov	w8, #1
	stur	x8, [x29, #-120]
	stur	x8, [x29, #-144]
	cmp	x28, x24
	b.hi	LBB0_6
; %bb.3:
Lloh14:
	adrp	x25, _EAP_PAX_MAC_LEN@GOTPAGE
Lloh15:
	ldr	x25, [x25, _EAP_PAX_MAC_LEN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x25]
	sub	x3, x29, #112
	sub	x4, x29, #136
	mov	x0, x22
	mov	x1, x21
	mov	w2, #3
	mov	x5, x23
	bl	_hmac_sha1_vector
	tbnz	x0, #63, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, x24
	csel	x24, x20, x24, lo
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_os_memcpy
	add	x19, x19, x24, lsl #3
	sub	x20, x20, x24
	ldur	x8, [x29, #-144]
	add	x9, x8, #1
	stur	x9, [x29, #-144]
	cmp	x8, x27
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA1_MAC_LEN,4,2               ; @SHA1_MAC_LEN
	.comm	_EAP_PAX_MAC_LEN,8,3            ; @EAP_PAX_MAC_LEN
	.comm	_EAP_PAX_MAC_HMAC_SHA1_128,8,3  ; @EAP_PAX_MAC_HMAC_SHA1_128
.subsections_via_symbols
