	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decompress_certificate
_decompress_certificate:                ## @decompress_certificate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PTLS_CERTIFICATE_COMPRESSION_ALGORITHM_BROTLI@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	%rcx, %rbx
	leaq	16(%rbp), %rax
	movq	%rcx, -16(%rbp)
	movq	(%rax), %rdi
	movl	8(%rax), %esi
	leaq	-16(%rbp), %rdx
	movl	%r8d, %ecx
	callq	_BrotliDecoderDecompress
	movq	_BROTLI_DECODER_RESULT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpq	%rbx, -16(%rbp)
	je	LBB0_4
LBB0_3:
	movq	_PTLS_ALERT_BAD_CERTIFICATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_CERTIFICATE_COMPRESSION_ALGORITHM_BROTLI,8,3 ## @PTLS_CERTIFICATE_COMPRESSION_ALGORITHM_BROTLI
	.comm	_BROTLI_DECODER_RESULT_SUCCESS,8,3 ## @BROTLI_DECODER_RESULT_SUCCESS
	.comm	_PTLS_ALERT_BAD_CERTIFICATE,4,2 ## @PTLS_ALERT_BAD_CERTIFICATE
	.no_dead_strip	_decompress_certificate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decompress_certificate
_decompress_certificate:                ; @decompress_certificate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _PTLS_CERTIFICATE_COMPRESSION_ALGORITHM_BROTLI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTLS_CERTIFICATE_COMPRESSION_ALGORITHM_BROTLI@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x3
	str	x3, [sp, #8]
	add	x2, sp, #8
	mov	x0, x5
	mov	x1, x6
	mov	x3, x4
	bl	_BrotliDecoderDecompress
Lloh3:
	adrp	x8, _BROTLI_DECODER_RESULT_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BROTLI_DECODER_RESULT_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	cmp	x0, x8
	ccmp	x9, x19, #0, eq
	b.eq	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _PTLS_ALERT_BAD_CERTIFICATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTLS_ALERT_BAD_CERTIFICATE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_CERTIFICATE_COMPRESSION_ALGORITHM_BROTLI,8,3 ; @PTLS_CERTIFICATE_COMPRESSION_ALGORITHM_BROTLI
	.comm	_BROTLI_DECODER_RESULT_SUCCESS,8,3 ; @BROTLI_DECODER_RESULT_SUCCESS
	.comm	_PTLS_ALERT_BAD_CERTIFICATE,4,2 ; @PTLS_ALERT_BAD_CERTIFICATE
	.no_dead_strip	_decompress_certificate
.subsections_via_symbols
