	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efipart_strategy
_efipart_strategy:                      ## @efipart_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	callq	_efiblk_get_pdinfo
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_4
## %bb.3:
	cmpl	$0, 4(%rcx)
	je	LBB0_9
LBB0_4:
	movq	_efipart_realstrategy@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	movq	%r14, -64(%rbp)
	movl	8(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_DEVT_DISK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
## %bb.5:
	movl	(%rcx), %eax
	imull	(%r14), %eax
	leal	511(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$9, %edx
	addl	%ebx, %edx
	leaq	-72(%rbp), %rdi
	movl	%r13d, %esi
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_7:
	leaq	-72(%rbp), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
LBB0_8:
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_bcache_strategy
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_efipart_realstrategy,4,2       ## @efipart_realstrategy
	.comm	_DEVT_DISK,8,3                  ## @DEVT_DISK
	.no_dead_strip	_efipart_strategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efipart_strategy
_efipart_strategy:                      ; @efipart_strategy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x24, x0
	bl	_efiblk_get_pdinfo
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_11
LBB0_4:
Lloh0:
	adrp	x9, _efipart_realstrategy@GOTPAGE
Lloh1:
	ldr	x9, [x9, _efipart_realstrategy@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #24]
	str	x24, [sp, #16]
	ldr	w9, [x0, #8]
	str	w9, [sp, #8]
	ldr	x9, [x24, #8]
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DEVT_DISK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DEVT_DISK@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.5:
	ldr	w9, [x24]
	ldr	w8, [x8]
	mul	w8, w8, w9
	add	w9, w8, #511
	cmp	w8, #0
	csel	w8, w9, w8, lt
	add	w2, w23, w8, asr #9
	add	x0, sp, #8
	mov	x1, x22
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_8:
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x23
LBB0_9:
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_bcache_strategy
LBB0_10:
	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
	add	sp, sp, #96
	ret
LBB0_11:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_efipart_realstrategy,4,2       ; @efipart_realstrategy
	.comm	_DEVT_DISK,8,3                  ; @DEVT_DISK
	.no_dead_strip	_efipart_strategy
.subsections_via_symbols
