	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bad_request
_bad_request:                           ## @bad_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	movl	$400, %esi                      ## imm = 0x190
	callq	_http_status
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$405, %esi                      ## imm = 0x195
	callq	_http_status
	movq	(%r14), %r14
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	leaq	L_.str.5(%rip), %rdx
	cmovneq	%r14, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hdr_str
LBB0_4:
	movq	%rbx, %rdi
	callq	_hdr_nocache
	movq	%rbx, %rdi
	callq	_end_headers
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SERVER_PROTOCOL"

L_.str.1:                               ## @.str.1
	.asciz	"HTTP/1.1"

L_.str.2:                               ## @.str.2
	.asciz	"Method Not Allowed"

L_.str.3:                               ## @.str.3
	.asciz	"Allow"

L_.str.4:                               ## @.str.4
	.asciz	"GET"

L_.str.5:                               ## @.str.5
	.asciz	"GET, HEAD"

L_.str.6:                               ## @.str.6
	.asciz	"Bad Request"

	.no_dead_strip	_bad_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bad_request
_bad_request:                           ; @bad_request
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_3
LBB0_2:
Lloh4:
	adrp	x2, l_.str.6@PAGE
Lloh5:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w1, #400
	bl	_http_status
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #405
	bl	_http_status
	ldr	x20, [x20]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcmp
Lloh10:
	adrp	x8, l_.str.5@PAGE
Lloh11:
	add	x8, x8, l_.str.5@PAGEOFF
	cmp	w0, #0
	csel	x2, x8, x20, eq
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_hdr_str
LBB0_4:
	mov	x0, x19
	bl	_hdr_nocache
	mov	x0, x19
	bl	_end_headers
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SERVER_PROTOCOL"

l_.str.1:                               ; @.str.1
	.asciz	"HTTP/1.1"

l_.str.2:                               ; @.str.2
	.asciz	"Method Not Allowed"

l_.str.3:                               ; @.str.3
	.asciz	"Allow"

l_.str.4:                               ; @.str.4
	.asciz	"GET"

l_.str.5:                               ; @.str.5
	.asciz	"GET, HEAD"

l_.str.6:                               ; @.str.6
	.asciz	"Bad Request"

	.no_dead_strip	_bad_request
.subsections_via_symbols
