	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_set_header_fields
_ws_set_header_fields:                  ## @ws_set_header_fields
	.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	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movb	(%rdi), %al
	movl	$1, %r15d
	cmpb	$10, %al
	je	LBB0_15
## %bb.1:
	cmpb	$13, %al
	je	LBB0_15
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_ws_parse_request
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movq	%rax, (%r14)
	movq	-56(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r14)
LBB0_14:
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	%rax, %r12
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, %rbx
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movzbl	-1(%rbx), %edi
	decq	%rbx
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:
	movb	$0, 1(%rbx)
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_strpbrk
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movb	$32, 1(%rbx)
	jmp	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	1(%r12), %edi
	incq	%r12
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_ws_set_header_key_value
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET "

L_.str.1:                               ## @.str.1
	.asciz	"get "

L_.str.2:                               ## @.str.2
	.asciz	" \t"

	.no_dead_strip	_ws_set_header_fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws_set_header_fields
_ws_set_header_fields:                  ; @ws_set_header_fields
	.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
	stp	xzr, xzr, [sp]
	ldrb	w8, [x0]
	cmp	w8, #10
	ccmp	w8, #13, #4, ne
	b.ne	LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	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
LBB0_3:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strstr
	cbnz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_7
LBB0_5:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_ws_parse_request
	cbz	x0, LBB0_1
; %bb.6:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [sp, #8]
	stp	x8, x9, [x19]
	ldr	x8, [sp]
	str	x8, [x19, #16]
	b	LBB0_2
LBB0_7:
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_1
; %bb.8:
	mov	x21, x0
	mov	x22, x0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, x20
	b.eq	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w0, [x22, #-1]!
	bl	_isspace
	cbnz	x0, LBB0_9
; %bb.11:
	strb	wzr, [x22, #1]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strpbrk
	cbz	x0, LBB0_13
; %bb.12:
	mov	w8, #32
	strb	w8, [x22, #1]
	b	LBB0_1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x21, #1]!
	bl	_isspace
	cbnz	x0, LBB0_13
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ws_set_header_key_value
	mov	w0, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET "

l_.str.1:                               ; @.str.1
	.asciz	"get "

l_.str.2:                               ; @.str.2
	.asciz	" \t"

	.no_dead_strip	_ws_set_header_fields
.subsections_via_symbols
