	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_hkdf_expand               ## -- Begin function ptls_hkdf_expand
	.p2align	4, 0x90
_ptls_hkdf_expand:                      ## @ptls_hkdf_expand
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PTLS_MAX_DIGEST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	leaq	16(%rbp), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdx
	movq	8(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	$1, %r13d
	xorl	%r15d, %r15d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*8(%r15)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%r13), %r12
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	*8(%r15)
	movl	%r13d, -68(%rbp)
	movq	%r15, %rdi
	leaq	-68(%rbp), %rsi
	movl	$1, %edx
	callq	*8(%r15)
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	*(%r15)
	movq	(%rbx), %rdx
	imulq	%rdx, %r12
	addq	%r12, %rdx
	cmpq	%r14, %rdx
	cmovaeq	%r14, %rdx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r12,4), %rdi
	subq	%r12, %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_memcpy
	movq	(%rbx), %rdx
	movq	%rdx, %rax
	imulq	%r13, %rax
	incq	%r13
	cmpq	%r14, %rax
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_ptls_hmac_create
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_7:
	movq	_PTLS_HASH_FINAL_MODE_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*(%r15)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_8:
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_ptls_clear_memory
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_MAX_DIGEST_SIZE,4,2       ## @PTLS_MAX_DIGEST_SIZE
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
	.comm	_PTLS_HASH_FINAL_MODE_FREE,4,2  ## @PTLS_HASH_FINAL_MODE_FREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_hkdf_expand               ; -- Begin function ptls_hkdf_expand
	.p2align	2
_ptls_hkdf_expand:                      ; @ptls_hkdf_expand
	.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, #32
	mov	x20, x6
	mov	x21, x5
	stur	x4, [x29, #-104]                ; 8-byte Folded Spill
	mov	x23, x3
	mov	x24, x2
	mov	x26, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PTLS_MAX_DIGEST_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTLS_MAX_DIGEST_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	cbz	x2, LBB0_8
; %bb.1:
	mov	x27, #0
	ldr	x2, [x19]
	mov	w28, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27, #8]
	mov	x0, x27
	mov	x1, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	blr	x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x22, x28, #1
	ldr	x8, [x27, #8]
	mov	x0, x27
	mov	x1, x20
	mov	x2, x21
	blr	x8
	stur	w28, [x29, #-92]
	ldr	x8, [x27, #8]
	sub	x1, x29, #92
	mov	x0, x27
	mov	w2, #1
	blr	x8
	ldr	x8, [x27]
	mov	x0, x27
	mov	x1, x25
	mov	w2, #1
	blr	x8
	ldr	x8, [x19]
	mul	x9, x8, x22
	add	x8, x9, x8
	cmp	x8, x24
	csel	x8, x8, x24, lo
	add	x0, x26, x9, lsl #2
	sub	x2, x8, x9
	mov	x1, x25
	bl	_memcpy
	ldr	x2, [x19]
	mul	x8, x2, x28
	add	x28, x28, #1
	cmp	x8, x24
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x27, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	mov	x2, x23
	bl	_ptls_hmac_create
	mov	x27, x0
	cbnz	x0, LBB0_3
; %bb.6:
Lloh8:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_7:
	ldr	x8, [x27]
Lloh11:
	adrp	x9, _PTLS_HASH_FINAL_MODE_FREE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PTLS_HASH_FINAL_MODE_FREE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	mov	x0, x27
	mov	x1, #0
	blr	x8
LBB0_8:
	ldr	x1, [x19]
	mov	x0, x25
	bl	_ptls_clear_memory
	mov	w0, #0
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_MAX_DIGEST_SIZE,4,2       ; @PTLS_MAX_DIGEST_SIZE
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
	.comm	_PTLS_HASH_FINAL_MODE_FREE,4,2  ; @PTLS_HASH_FINAL_MODE_FREE
.subsections_via_symbols
