	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb_set_version
_sb_set_version:                        ## @sb_set_version
	.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, %rbx
	cmpb	$66, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %r14d
	movq	_SB_FLAG_DIRTY_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	testl	%r14d, %eax
	je	LBB0_4
LBB0_2:
	addq	$8, %rbx
	movq	_SB_VERSION_3@GOTPCREL(%rip), %rax
	movq	%rbx, %r14
LBB0_3:
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	8(%rbx), %r14
	cmpq	$0, 16(%rbx)
	jne	LBB0_5
## %bb.6:
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	_SB_FLAG_RECALCULATING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	testl	%ebx, %eax
	jne	LBB0_5
## %bb.7:
	movq	_SB_VERSION_1@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_SB_VERSION_2@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_SB_FLAG_DIRTY_BITMAP,4,2       ## @SB_FLAG_DIRTY_BITMAP
	.comm	_SB_VERSION_3,4,2               ## @SB_VERSION_3
	.comm	_SB_FLAG_RECALCULATING,4,2      ## @SB_FLAG_RECALCULATING
	.comm	_SB_VERSION_2,4,2               ## @SB_VERSION_2
	.comm	_SB_VERSION_1,4,2               ## @SB_VERSION_1
	.no_dead_strip	_sb_set_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sb_set_version
_sb_set_version:                        ; @sb_set_version
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldrb	w8, [x0]
	cmp	w8, #66
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x19
	ldr	x8, [x20, #8]!
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _SB_FLAG_DIRTY_BITMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SB_FLAG_DIRTY_BITMAP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	tst	w0, w21
	b.eq	LBB0_4
LBB0_2:
	add	x20, x19, #8
Lloh3:
	adrp	x19, _SB_VERSION_3@GOTPAGE
Lloh4:
	ldr	x19, [x19, _SB_VERSION_3@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x19]
	ldr	x9, [x20]
	str	w8, [x9, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x19, _SB_VERSION_2@GOTPAGE
Lloh6:
	ldr	x19, [x19, _SB_VERSION_2@GOTPAGEOFF]
	cbnz	x8, LBB0_3
; %bb.5:
	ldr	x8, [x20]
	ldr	w21, [x8]
Lloh7:
	adrp	x8, _SB_FLAG_RECALCULATING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SB_FLAG_RECALCULATING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_cpu_to_le32
Lloh10:
	adrp	x8, _SB_VERSION_1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SB_VERSION_1@GOTPAGEOFF]
	tst	w0, w21
	csel	x19, x8, x19, eq
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SB_FLAG_DIRTY_BITMAP,4,2       ; @SB_FLAG_DIRTY_BITMAP
	.comm	_SB_VERSION_3,4,2               ; @SB_VERSION_3
	.comm	_SB_FLAG_RECALCULATING,4,2      ; @SB_FLAG_RECALCULATING
	.comm	_SB_VERSION_2,4,2               ; @SB_VERSION_2
	.comm	_SB_VERSION_1,4,2               ; @SB_VERSION_1
	.no_dead_strip	_sb_set_version
.subsections_via_symbols
