	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_set_memattr          ## -- Begin function vm_object_set_memattr
	.p2align	4, 0x90
_vm_object_set_memattr:                 ## @vm_object_set_memattr
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$7, %ecx
	jae	LBB0_1
## %bb.3:
	leaq	8(%rbx), %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_KERN_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	cmpl	$135, %eax
	jne	LBB0_5
## %bb.2:
	movq	_KERN_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_panic
LBB0_6:
	movl	%r14d, 4(%rbx)
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_FAILURE,4,2               ## @KERN_FAILURE
	.comm	_KERN_INVALID_ARGUMENT,4,2      ## @KERN_INVALID_ARGUMENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_object_set_memattr: object %p is of undefined type"

	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_set_memattr          ; -- Begin function vm_object_set_memattr
	.p2align	2
_vm_object_set_memattr:                 ; @vm_object_set_memattr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #7
	b.hs	LBB0_3
; %bb.1:
	add	x0, x20, #8
	bl	_TAILQ_EMPTY
	cbnz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _KERN_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_FAILURE@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	cmp	w8, #135
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _KERN_INVALID_ARGUMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KERN_INVALID_ARGUMENT@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_panic
LBB0_6:
	str	w19, [x20, #4]
Lloh6:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_FAILURE,4,2               ; @KERN_FAILURE
	.comm	_KERN_INVALID_ARGUMENT,4,2      ; @KERN_INVALID_ARGUMENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_object_set_memattr: object %p is of undefined type"

	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
.subsections_via_symbols
