	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_cookie_hmac
_ssl_cookie_hmac:                       ## @ssl_cookie_hmac
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_COOKIE_MD_OUTLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	subq	(%r15), %r12
	movq	_COOKIE_HMAC_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jae	LBB0_2
## %bb.1:
	movq	_MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_mbedtls_md_hmac_reset
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movl	$4, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_md_hmac_update
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_mbedtls_md_hmac_update
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mbedtls_md_hmac_finish
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:
	movq	_MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r15), %rdi
	movq	_COOKIE_HMAC_LEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%r12, %rsi
	callq	_memcpy
	movq	(%rbx), %rax
	addq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COOKIE_MD_OUTLEN,4,2           ## @COOKIE_MD_OUTLEN
	.comm	_COOKIE_HMAC_LEN,8,3            ## @COOKIE_HMAC_LEN
	.comm	_MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL,4,2 ## @MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL
	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ## @MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.no_dead_strip	_ssl_cookie_hmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_cookie_hmac
_ssl_cookie_hmac:                       ; @ssl_cookie_hmac
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x22, x5
	mov	x23, x4
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _COOKIE_MD_OUTLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COOKIE_MD_OUTLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	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, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x2]
Lloh8:
	adrp	x25, _COOKIE_HMAC_LEN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _COOKIE_HMAC_LEN@GOTPAGEOFF]
	ldr	x9, [x25]
	sub	x8, x3, x8
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x0, x21
	bl	_mbedtls_md_hmac_reset
	cbnz	x0, LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x24
	mov	w2, #4
	bl	_mbedtls_md_hmac_update
	cbnz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_mbedtls_md_hmac_update
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_mbedtls_md_hmac_finish
	cbz	x0, LBB0_10
LBB0_6:
Lloh12:
	adrp	x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldur	x8, [x29, #-72]
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.9:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x0, [x19]
	ldr	x2, [x25]
	mov	x1, x20
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x25]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_COOKIE_MD_OUTLEN,4,2           ; @COOKIE_MD_OUTLEN
	.comm	_COOKIE_HMAC_LEN,8,3            ; @COOKIE_HMAC_LEN
	.comm	_MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL,4,2 ; @MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL
	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ; @MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.no_dead_strip	_ssl_cookie_hmac
.subsections_via_symbols
