	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_http_error               ## -- Begin function write_http_error
	.p2align	4, 0x90
_write_http_error:                      ## @write_http_error
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%esi, -28(%rbp)
	cmpl	$204, %esi
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$204, %esi
	xorl	%edx, %edx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_write_basic_http_header
	jmp	LBB0_3
LBB0_2:
	leaq	-28(%rbp), %rdi
	callq	_http_get_error_msg_text
	movq	_error_text_pattern@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	-28(%rbp), %edx
	leaq	_write_http_error.buff(%rip), %r15
	movq	%r15, %rdi
	movq	%rax, %rcx
	movl	%edx, %r8d
	movq	%rax, %r9
	callq	_sprintf
	movl	%eax, %ebx
	movl	-28(%rbp), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_write_basic_http_header
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_write_out
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_write_http_error.buff,1024,4 ## @write_http_error.buff
	.comm	_error_text_pattern,8,3         ## @error_text_pattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_http_error               ; -- Begin function write_http_error
	.p2align	2
_write_http_error:                      ; @write_http_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	w1, [sp, #12]
	cmp	w1, #204
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w2, #0
	mov	w3, #-1
	mov	w4, #0
	mov	w5, #0
	bl	_write_basic_http_header
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	add	x0, sp, #12
	bl	_http_get_error_msg_text
	mov	x3, x0
Lloh0:
	adrp	x8, _error_text_pattern@GOTPAGE
Lloh1:
	ldr	x8, [x8, _error_text_pattern@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	ldr	w2, [sp, #12]
Lloh3:
	adrp	x20, _write_http_error.buff@PAGE
Lloh4:
	add	x20, x20, _write_http_error.buff@PAGEOFF
	mov	x0, x20
	mov	x4, x2
	mov	x5, x3
	bl	_sprintf
	mov	x21, x0
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x21
	mov	w4, #0
	mov	w5, #0
	bl	_write_basic_http_header
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_write_out
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_write_http_error.buff,1024,0 ; @write_http_error.buff
	.comm	_error_text_pattern,8,3         ; @error_text_pattern
.subsections_via_symbols
