	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_object_type                ## -- Begin function set_object_type
	.p2align	4, 0x90
_set_object_type:                       ## @set_object_type
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movq	8(%rdi), %rdi
	callq	_check_object_id
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movzbl	%bh, %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.2:
	movzbl	%bl, %r8d
	testl	%r8d, %r8d
	je	LBB0_7
## %bb.3:
	movq	_write_only@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$1, %r14d
	jne	LBB0_7
## %bb.4:
	movq	_no_changes@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
## %bb.5:
	cmpl	%r8d, %edx
	je	LBB0_7
## %bb.6:
	movq	_stat_global@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rax
	incl	8(%rax)
	orl	$256, %edx                      ## imm = 0x100
	movl	8(%r15), %ecx
	movq	_global_changes_st@GOTPCREL(%rip), %rdi
	movq	_global_changes_en@GOTPCREL(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_chg_list_add_int
	movq	_changes_count@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_only,8,3                 ## @write_only
	.comm	_no_changes,8,3                 ## @no_changes
	.comm	_stat_global,8,3                ## @stat_global
	.comm	_global_changes_st,4,2          ## @global_changes_st
	.comm	_global_changes_en,4,2          ## @global_changes_en
	.comm	_changes_count,4,2              ## @changes_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_object_type                ; -- Begin function set_object_type
	.p2align	2
_set_object_type:                       ; @set_object_type
	.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	x20, x0
	ldr	w8, [x0]
	ubfx	x21, x8, #8, #8
	and	w19, w8, #0xff
	ldr	x0, [x0, #8]
	bl	_check_object_id
	cmp	w0, #0
	ccmp	w21, #0, #4, ne
	ccmp	w19, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _write_only@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_only@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _no_changes@GOTPAGE
Lloh4:
	ldr	x9, [x9, _no_changes@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	ccmp	w21, w19, #4, eq
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _stat_global@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stat_global@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	orr	w2, w21, #0x100
	ldr	w3, [x20, #8]
Lloh9:
	adrp	x0, _global_changes_st@GOTPAGE
Lloh10:
	ldr	x0, [x0, _global_changes_st@GOTPAGEOFF]
Lloh11:
	adrp	x1, _global_changes_en@GOTPAGE
Lloh12:
	ldr	x1, [x1, _global_changes_en@GOTPAGEOFF]
	mov	x4, x19
	bl	_chg_list_add_int
Lloh13:
	adrp	x8, _changes_count@GOTPAGE
Lloh14:
	ldr	x8, [x8, _changes_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_4:
	mov	w0, #1
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_write_only,8,3                 ; @write_only
	.comm	_no_changes,8,3                 ; @no_changes
	.comm	_stat_global,8,3                ; @stat_global
	.comm	_global_changes_st,4,2          ; @global_changes_st
	.comm	_global_changes_en,4,2          ; @global_changes_en
	.comm	_changes_count,4,2              ; @changes_count
.subsections_via_symbols
