	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_set_front_header_fields
_ws_set_front_header_fields:            ## @ws_set_front_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movsbl	(%rbx), %edi
	callq	_WS_FRM_FIN
	movq	(%r14), %rcx
	movl	%eax, 20(%rcx)
	movsbl	1(%rbx), %edi
	callq	_WS_FRM_MASK
	movq	(%r14), %rcx
	movl	%eax, 12(%rcx)
	movsbl	(%rbx), %edi
	callq	_WS_FRM_OPCODE
	movq	(%r14), %rcx
	movl	%eax, 16(%rcx)
	movsbl	(%rbx), %edi
	callq	_WS_FRM_R1
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movsbl	(%rbx), %edi
	callq	_WS_FRM_R2
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	(%r14), %rax
	movl	$1, 8(%rax)
LBB0_3:
	movq	_WS_ERR@GOTPCREL(%rip), %rax
	movq	_WS_CLOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ws_set_status                  ## TAILCALL
LBB0_4:
	movsbl	(%rbx), %edi
	callq	_WS_FRM_R3
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	(%r14), %rdx
	movl	%ecx, 8(%rdx)
	cmpl	$0, 12(%rdx)
	je	LBB0_3
## %bb.5:
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_ERR,4,2                     ## @WS_ERR
	.comm	_WS_CLOSE,4,2                   ## @WS_CLOSE
	.no_dead_strip	_ws_set_front_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_front_header_fields
_ws_set_front_header_fields:            ; @ws_set_front_header_fields
	.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	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldrsb	w0, [x20]
	bl	_WS_FRM_FIN
	ldr	x8, [x19]
	str	w0, [x8, #20]
	ldrsb	w0, [x20, #1]
	bl	_WS_FRM_MASK
	ldr	x8, [x19]
	str	w0, [x8, #12]
	ldrsb	w0, [x20]
	bl	_WS_FRM_OPCODE
	ldr	x8, [x19]
	str	w0, [x8, #16]
	ldrsb	w0, [x20]
	bl	_WS_FRM_R1
	cbnz	x0, LBB0_2
; %bb.1:
	ldrsb	w0, [x20]
	bl	_WS_FRM_R2
	cbz	x0, LBB0_4
LBB0_2:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8, #8]
LBB0_3:
Lloh0:
	adrp	x8, _WS_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WS_ERR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WS_CLOSE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WS_CLOSE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ws_set_status
LBB0_4:
	ldrsb	w0, [x20]
	bl	_WS_FRM_R3
	cmp	x0, #0
	cset	w8, ne
	ldr	x9, [x19]
	str	w8, [x9, #8]
	ldr	w8, [x9, #12]
	cbz	w8, LBB0_3
; %bb.5:
	cbnz	x0, LBB0_3
; %bb.6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_ERR,4,2                     ; @WS_ERR
	.comm	_WS_CLOSE,4,2                   ; @WS_CLOSE
	.no_dead_strip	_ws_set_front_header_fields
.subsections_via_symbols
