	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf_bucket_headers_setx       ## -- Begin function serf_bucket_headers_setx
	.p2align	4, 0x90
_serf_bucket_headers_setx:              ## @serf_bucket_headers_setx
	.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
	movq	%r9, %r14
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	movl	$48, %esi
	callq	_serf_bucket_mem_alloc
	movq	%rax, %rbx
	movq	%r15, 40(%rax)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, 32(%rax)
	movl	$0, 24(%rax)
	movq	$0, 16(%rax)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_serf_bstrmemdup
	movq	%rax, %r13
	movq	_ALLOC_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
LBB0_2:
	movq	%r13, (%rbx)
	cmpl	$0, 16(%rbp)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_serf_bstrmemdup
	movq	%rax, %rsi
	movq	_ALLOC_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
LBB0_4:
	movq	%rsi, 8(%rbx)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	leaq	8(%rsi), %rcx
	leaq	16(%rax), %rdx
	testq	%rax, %rax
	cmoveq	%rcx, %rdx
	movq	%rbx, (%rdx)
	movq	%rbx, (%rsi)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALLOC_HEADER,4,2               ## @ALLOC_HEADER
	.comm	_ALLOC_VALUE,4,2                ## @ALLOC_VALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf_bucket_headers_setx       ; -- Begin function serf_bucket_headers_setx
	.p2align	2
_serf_bucket_headers_setx:              ; @serf_bucket_headers_setx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x6
	mov	x21, x5
	mov	x19, x4
	mov	x26, x3
	mov	x25, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x27, [x0, #8]
	ldr	w0, [x0]
	mov	w1, #48
	bl	_serf_bucket_mem_alloc
	mov	x20, x0
	stp	x21, x25, [x0, #32]
	str	wzr, [x0, #24]
	str	xzr, [x0, #16]
	cbz	w26, LBB0_2
; %bb.1:
	ldr	w0, [x23]
	mov	x1, x24
	mov	x2, x25
	bl	_serf_bstrmemdup
	mov	x24, x0
Lloh0:
	adrp	x8, _ALLOC_HEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALLOC_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
LBB0_2:
	str	x24, [x20]
	cbz	w22, LBB0_4
; %bb.3:
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x21
	bl	_serf_bstrmemdup
	mov	x19, x0
Lloh3:
	adrp	x8, _ALLOC_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALLOC_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
LBB0_4:
	str	x19, [x20, #8]
	ldr	x8, [x27]
	add	x9, x27, #8
	add	x10, x8, #16
	cmp	x8, #0
	csel	x8, x9, x10, eq
	str	x20, [x8]
	str	x20, [x27]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ALLOC_HEADER,4,2               ; @ALLOC_HEADER
	.comm	_ALLOC_VALUE,4,2                ; @ALLOC_VALUE
.subsections_via_symbols
