	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memory_block_change_state
_memory_block_change_state:             ## @memory_block_change_state
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpq	%r14, (%r15)
	jne	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$129, %r13
	jne	LBB0_4
## %bb.3:
	movq	_MEM_GOING_OFFLINE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_4:
	movl	8(%r15), %r14d
	cmpl	12(%r15), %r14d
	jg	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_memory_section_action
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%r14), %eax
	cmpl	12(%r15), %r14d
	movl	%eax, %r14d
	jl	LBB0_9
LBB0_5:
	movq	%r13, (%r15)
	xorl	%r12d, %r12d
	cmpq	$128, %r13
	je	LBB0_13
## %bb.6:
	cmpq	$129, %r13
	jne	LBB0_15
## %bb.7:
	addq	$20, %r15
	movq	_KOBJ_OFFLINE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %r12d
	movl	8(%r15), %ebx
	cmpl	12(%r15), %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_memory_section_action
	leal	1(%rbx), %eax
	cmpl	12(%r15), %ebx
	movl	%eax, %ebx
	jl	LBB0_11
LBB0_12:
	movq	%r14, (%r15)
	jmp	LBB0_15
LBB0_13:
	addq	$20, %r15
	movq	_KOBJ_ONLINE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kobject_uevent
LBB0_15:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEM_GOING_OFFLINE,8,3          ## @MEM_GOING_OFFLINE
	.comm	_KOBJ_OFFLINE,4,2               ## @KOBJ_OFFLINE
	.comm	_KOBJ_ONLINE,4,2                ## @KOBJ_ONLINE
	.no_dead_strip	_memory_block_change_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function memory_block_change_state
_memory_block_change_state:             ; @memory_block_change_state
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.1:
	cmp	x22, #129
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _MEM_GOING_OFFLINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEM_GOING_OFFLINE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_3:
	ldp	w24, w8, [x20, #8]
	cmp	w24, w8
	b.gt	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_memory_section_action
	cbnz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w24, #1
	ldr	w9, [x20, #12]
	cmp	w24, w9
	mov	x24, x8
	b.lt	LBB0_4
LBB0_6:
	str	x22, [x20]
	cmp	x22, #128
	b.eq	LBB0_13
; %bb.7:
	cmp	x22, #129
	b.ne	LBB0_15
; %bb.8:
	add	x0, x20, #20
Lloh3:
	adrp	x8, _KOBJ_OFFLINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KOBJ_OFFLINE@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_10:
	mov	x23, x0
	ldp	w22, w8, [x20, #8]
	cmp	w22, w8
	b.gt	LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_memory_section_action
	add	w8, w22, #1
	ldr	w9, [x20, #12]
	cmp	w22, w9
	mov	x22, x8
	b.lt	LBB0_11
LBB0_12:
	str	x21, [x20]
	b	LBB0_16
LBB0_13:
	add	x0, x20, #20
Lloh8:
	adrp	x8, _KOBJ_ONLINE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KOBJ_ONLINE@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	bl	_kobject_uevent
LBB0_15:
	mov	w23, #0
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEM_GOING_OFFLINE,8,3          ; @MEM_GOING_OFFLINE
	.comm	_KOBJ_OFFLINE,4,2               ; @KOBJ_OFFLINE
	.comm	_KOBJ_ONLINE,4,2                ; @KOBJ_ONLINE
	.no_dead_strip	_memory_block_change_state
.subsections_via_symbols
