	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_httpd_addheader            ## -- Begin function isc_httpd_addheader
	.p2align	4, 0x90
_isc_httpd_addheader:                   ## @isc_httpd_addheader
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strlen
	movl	%eax, %r14d
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r14d
	addl	$2, %r14d
LBB0_2:
	addl	$2, %r14d
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_isc_buffer_availablelength
	movq	%rbx, %rdi
	cmpl	%r14d, %eax
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_grow_headerspace
	cmpq	(%r13), %rax
	je	LBB0_3
	jmp	LBB0_9
LBB0_5:
	callq	_isc_buffer_used
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_sprintf
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_isc_buffer_add
	movq	(%r13), %rax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s\r\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_httpd_addheader            ; -- Begin function isc_httpd_addheader
	.p2align	2
_isc_httpd_addheader:                   ; @isc_httpd_addheader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	mov	x22, x0
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_strlen
	add	w8, w22, w0
	add	w22, w8, #2
LBB0_2:
	add	w22, w22, #2
Lloh0:
	adrp	x23, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ISC_R_SUCCESS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_isc_buffer_availablelength
	cmp	w0, w22
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_grow_headerspace
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_3
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_isc_buffer_used
	cbz	x21, LBB0_7
; %bb.6:
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x2, x20
	bl	_sprintf
	mov	x0, x19
	mov	x1, x22
	bl	_isc_buffer_add
	ldr	x0, [x23]
LBB0_9:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s\r\n"

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

.subsections_via_symbols
