	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_write
_http_write:                            ## @http_write
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -57(%rbp)
	movq	$0, -64(%rbp)
	movb	$0, -66(%rbp)
	movw	$2573, -68(%rbp)                ## imm = 0xA0D
	movq	(%rdi), %rbx
	cmpl	$0, 4(%rbx)
	je	LBB0_1
## %bb.3:
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.4:
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$11, %esi
	movl	%r13d, %ecx
	callq	_snprintf
	movl	(%rbx), %r12d
	movq	%r15, %rdi
	callq	_strlen
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ffurl_write
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_ffurl_write
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	leaq	-68(%rbp), %rsi
	movl	$2, %edx
	callq	_ffurl_write
	testl	%eax, %eax
	jns	LBB0_8
LBB0_7:
	movl	%eax, %r13d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.2:
	movq	%r14, %rsi
	movl	%r13d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ffurl_write                    ## TAILCALL
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const.http_write.crlf:              ## @__const.http_write.crlf
	.asciz	"\r\n"

L_.str:                                 ## @.str
	.asciz	"%x\r\n"

	.no_dead_strip	_http_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_write
_http_write:                            ; @http_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stur	wzr, [sp, #15]
	str	xzr, [sp, #8]
	strb	wzr, [sp, #6]
	mov	w8, #2573
	strh	w8, [sp, #4]
	ldr	x22, [x0]
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_8
; %bb.1:
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.2:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #11
	mov	x3, x19
	bl	_snprintf
	ldr	w21, [x22]
	add	x0, sp, #8
	bl	_strlen
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_ffurl_write
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x19
	bl	_ffurl_write
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	w0, [x22]
	add	x1, sp, #4
	mov	w2, #2
	bl	_ffurl_write
	tbz	w0, #31, LBB0_6
LBB0_5:
	mov	x19, x0
LBB0_6:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w0, [x22]
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ffurl_write
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.http_write.crlf:              ; @__const.http_write.crlf
	.asciz	"\r\n"

l_.str:                                 ; @.str
	.asciz	"%x\r\n"

	.no_dead_strip	_http_write
.subsections_via_symbols
