	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_head_update
_split_head_update:                     ## @split_head_update
	.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
	movl	(%rdi), %eax
	movq	_REF_LOG_ONLY@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	testl	%eax, (%r14)
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %r12
	movq	_REF_IS_PRUNING@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	jne	LBB0_9
## %bb.2:
	movq	_REF_UPDATE_VIA_HEAD@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	jne	LBB0_9
## %bb.3:
	movq	%r8, %r13
	movq	%rdi, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edi
	movq	%rdx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_string_list_has_string
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strbuf_addf
	movq	_TRANSACTION_NAME_CONFLICT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_6:
	movl	(%r14), %edx
	orl	(%rbx), %edx
	movq	_REF_NO_DEREF@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	16(%rbx), %rcx
	movl	8(%rbx), %r9d
	addq	$12, %rbx
	leaq	L_.str(%rip), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %r8
	callq	_ref_transaction_add_update
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	4(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_BUG
LBB0_8:
	movl	4(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_string_list_insert
	movq	%rbx, (%rax)
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_LOG_ONLY,4,2               ## @REF_LOG_ONLY
	.comm	_REF_IS_PRUNING,4,2             ## @REF_IS_PRUNING
	.comm	_REF_UPDATE_VIA_HEAD,4,2        ## @REF_UPDATE_VIA_HEAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

L_.str.1:                               ## @.str.1
	.asciz	"multiple updates for 'HEAD' (including one via its referent '%s') are not allowed"

	.comm	_TRANSACTION_NAME_CONFLICT,4,2  ## @TRANSACTION_NAME_CONFLICT
	.comm	_REF_NO_DEREF,4,2               ## @REF_NO_DEREF
L_.str.2:                               ## @.str.2
	.asciz	"%s unexpectedly not 'HEAD'"

	.no_dead_strip	_split_head_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_head_update
_split_head_update:                     ; @split_head_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _REF_LOG_ONLY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REF_LOG_ONLY@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.1:
Lloh2:
	adrp	x9, _REF_IS_PRUNING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REF_IS_PRUNING@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x9, _REF_UPDATE_VIA_HEAD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _REF_UPDATE_VIA_HEAD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x22, x4
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	mov	x1, x2
	bl	_strcmp
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_string_list_has_string
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w2, [x21, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strbuf_addf
Lloh12:
	adrp	x8, _TRANSACTION_NAME_CONFLICT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRANSACTION_NAME_CONFLICT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_8:
	ldr	w8, [x21]
	ldr	w9, [x23]
Lloh15:
	adrp	x10, _REF_NO_DEREF@GOTPAGE
Lloh16:
	ldr	x10, [x10, _REF_NO_DEREF@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh17:
	ldr	w9, [x10]
	orr	w2, w8, w9
	add	x3, x21, #16
	add	x4, x21, #12
	ldr	w5, [x21, #8]
Lloh18:
	adrp	x21, l_.str@PAGE
Lloh19:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_ref_transaction_add_update
	mov	x20, x0
	ldr	w0, [x0, #4]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w1, [x20, #4]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BUG
LBB0_10:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_string_list_insert
	mov	x8, x0
	mov	w0, #0
	str	x20, [x8]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_LOG_ONLY,4,2               ; @REF_LOG_ONLY
	.comm	_REF_IS_PRUNING,4,2             ; @REF_IS_PRUNING
	.comm	_REF_UPDATE_VIA_HEAD,4,2        ; @REF_UPDATE_VIA_HEAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

l_.str.1:                               ; @.str.1
	.asciz	"multiple updates for 'HEAD' (including one via its referent '%s') are not allowed"

	.comm	_TRANSACTION_NAME_CONFLICT,4,2  ; @TRANSACTION_NAME_CONFLICT
	.comm	_REF_NO_DEREF,4,2               ; @REF_NO_DEREF
l_.str.2:                               ; @.str.2
	.asciz	"%s unexpectedly not 'HEAD'"

	.no_dead_strip	_split_head_update
.subsections_via_symbols
