	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function array_set_value
_array_set_value:                       ## @array_set_value
	.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	%r8, %r15
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rdi, %r13
	movl	%esi, -44(%rbp)
	movl	32(%rdi), %edi
	callq	_dm_tm_get_bm
	movl	%eax, %edi
	callq	_dm_bm_block_size
	movl	(%r13), %edi
	movq	%rax, %rsi
	callq	_calc_max_entries
	movl	%eax, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r12d
	leaq	-44(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_shadow_ablock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	-44(%rbp), %eax
	movl	%eax, (%r15)
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	cmpl	%eax, %r12d
	jae	LBB0_2
## %bb.3:
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_element_at
	movq	%rax, %r15
	movq	16(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.4:
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	4(%r13), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	16(%r13), %rcx
LBB0_7:
	movl	4(%r13), %edi
	movq	%r15, %rsi
	callq	*%rcx
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	4(%r13), %edi
	movq	%r14, %rsi
	callq	*%rax
LBB0_9:
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_unlock_ablock
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_array_set_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function array_set_value
_array_set_value:                       ; @array_set_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, x0
	str	w1, [sp, #28]
	ldr	w0, [x0, #32]
	bl	_dm_tm_get_bm
	bl	_dm_bm_block_size
	mov	x1, x0
	ldr	w0, [x19]
	bl	_calc_max_entries
	mov	x23, x0
	udiv	w25, w22, w0
	add	x1, sp, #28
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x19
	mov	x2, x25
	bl	_shadow_ablock
	mov	x24, x0
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w8, [sp, #28]
	str	w8, [x21]
	msub	w21, w25, w23, w22
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	cmp	w21, w0
	b.hs	LBB0_9
; %bb.2:
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_element_at
	mov	x21, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_6
; %bb.4:
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	x2, x20
	blr	x9
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x19, #16]
LBB0_6:
	ldr	w0, [x19, #4]
	mov	x1, x21
	blr	x8
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19, #4]
	mov	x1, x20
	blr	x8
LBB0_8:
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_memcpy
	mov	w24, #0
	b	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _ENODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_unlock_ablock
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_array_set_value
.subsections_via_symbols
