	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geli_dev_strategy
_geli_dev_strategy:                     ## @geli_dev_strategy
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	_F_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_F_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	leaq	(%rdx,%r13), %r15
	movq	(%rdi), %rax
	movl	(%rax), %esi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_rounddown2
	movq	%rax, %r14
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_roundup2
	movq	%r14, %rdx
	movq	%rax, %r15
	subq	%r14, %r15
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	cmpq	%r13, %r15
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jbe	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_malloc
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %r8
	testq	%rax, %rax
	je	LBB0_15
LBB0_3:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.4:
	movq	%rdx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rdx
	jmp	LBB0_7
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_6:
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edx
LBB0_7:
	movl	%r12d, %esi
	movq	%r15, %rcx
	movq	%r8, %r12
	xorl	%r9d, %r9d
	callq	*%rbx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_geli_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, %r12
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subq	-48(%rbp), %rsi                 ## 8-byte Folded Reload
	addq	%r12, %rsi
	movq	%r14, %rdx
	callq	_memcpy
LBB0_11:
	xorl	%ebx, %ebx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, (%rax)
LBB0_13:
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_17
## %bb.14:
	movq	%r12, %rdi
	callq	_free
LBB0_17:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_F_MASK,4,2                     ## @F_MASK
	.comm	_F_READ,4,2                     ## @F_READ
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_DEV_BSIZE,8,3                  ## @DEV_BSIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_geli_dev_strategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geli_dev_strategy
_geli_dev_strategy:                     ; @geli_dev_strategy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _F_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh3:
	adrp	x9, _F_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _F_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.1:
	mov	x20, x5
	mov	x19, x4
	mov	x21, x3
	mov	x26, x1
	mov	x24, x0
Lloh6:
	adrp	x28, _DEV_BSIZE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DEV_BSIZE@GOTPAGEOFF]
	ldr	x8, [x28]
	mul	x22, x8, x2
	add	x23, x22, x3
	ldr	x8, [x0]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rounddown2
	mov	x25, x0
	ldr	x8, [x24]
	ldr	w1, [x8]
	mov	x0, x23
	bl	_roundup2
	sub	x27, x0, x25
	cmp	x27, x21
	mov	x23, x19
	b.ls	LBB0_3
; %bb.2:
	mov	x0, x27
	bl	_malloc
	mov	x23, x0
	cbz	x0, LBB0_14
LBB0_3:
	ldr	x0, [x24, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x28]
	udiv	x2, x25, x9
	mov	x1, x26
	mov	x3, x27
	mov	x4, x23
	mov	x5, #0
	blr	x8
	mov	x26, x0
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x0, [x24]
	mov	x1, x25
	mov	x2, x23
	mov	x3, x27
	bl	_geli_read
	mov	x26, x0
	cbnz	w0, LBB0_9
; %bb.5:
	cmp	x23, x19
	b.eq	LBB0_7
; %bb.6:
	sub	x8, x22, x25
	add	x1, x23, x8
	mov	x0, x19
	mov	x2, x21
	bl	_memcpy
LBB0_7:
	mov	w26, #0
	cbz	x20, LBB0_9
; %bb.8:
	str	x21, [x20]
LBB0_9:
	cmp	x23, x19
	b.eq	LBB0_13
; %bb.10:
	mov	x0, x23
	bl	_free
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_12:
	ldr	w26, [x8]
LBB0_13:
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_F_MASK,4,2                     ; @F_MASK
	.comm	_F_READ,4,2                     ; @F_READ
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_DEV_BSIZE,8,3                  ; @DEV_BSIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_geli_dev_strategy
.subsections_via_symbols
