	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ub_cmd_build_block
_ub_cmd_build_block:                    ## @ub_cmd_build_block
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	8(%rcx), %r14
	movq	%r14, %rdi
	callq	_rq_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rdx
	movq	_UB_DIR_READ@GOTPCREL(%rip), %r13
	movq	%r13, %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_UB_DIR_WRITE@GOTPCREL(%rip), %rcx
LBB0_2:
	movq	(%rcx), %rax
	movq	%rax, (%r12)
	movl	(%rbx), %edx
	movl	%edx, 8(%r12)
	movl	32(%r12), %edi
	movl	4(%rbx), %esi
	shll	$2, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_blk_rq_pos
	movl	%eax, %ebx
	movb	(%r15), %cl
	shrl	%cl, %ebx
	movq	%r14, %rdi
	callq	_blk_rq_sectors
	movb	(%r15), %cl
	shrl	%cl, %eax
	movq	(%r12), %rdx
	movq	16(%r12), %rcx
	cmpq	(%r13), %rdx
	jne	LBB0_3
## %bb.4:
	movq	_READ_10@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
	movq	_WRITE_10@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
	movl	%ebx, %edx
	shrl	$24, %edx
	movl	%edx, 8(%rcx)
	movl	%ebx, %edx
	shrl	$16, %edx
	movl	%edx, 12(%rcx)
	movl	%ebx, %edx
	shrl	$8, %edx
	movl	%edx, 16(%rcx)
	movl	%ebx, 20(%rcx)
	movl	%eax, %edx
	shrl	$8, %edx
	movl	%edx, 28(%rcx)
	movl	%eax, 32(%rcx)
	movl	$10, 24(%r12)
	movq	%r14, %rdi
	callq	_blk_rq_bytes
	movl	%eax, 28(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_UB_DIR_WRITE,8,3               ## @UB_DIR_WRITE
	.comm	_UB_DIR_READ,8,3                ## @UB_DIR_READ
	.comm	_READ_10,4,2                    ## @READ_10
	.comm	_WRITE_10,4,2                   ## @WRITE_10
	.no_dead_strip	_ub_cmd_build_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ub_cmd_build_block
lCPI0_0:
	.long	4294967272                      ; 0xffffffe8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ub_cmd_build_block:                    ; @ub_cmd_build_block
	.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, x3
	mov	x19, x2
	mov	x22, x1
	ldr	x20, [x3, #8]
	mov	x0, x20
	bl	_rq_data_dir
Lloh0:
	adrp	x8, _WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _UB_DIR_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UB_DIR_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x23, _UB_DIR_READ@GOTPAGE
Lloh6:
	ldr	x23, [x23, _UB_DIR_READ@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x23, eq
	ldr	x8, [x8]
	str	x8, [x19]
	ldp	w8, w1, [x21]
	str	w8, [x19, #8]
	ldr	w0, [x19, #32]
	lsl	w2, w8, #2
	bl	_memcpy
	mov	x0, x20
	bl	_blk_rq_pos
	ldr	w8, [x22]
	lsr	w21, w0, w8
	mov	x0, x20
	bl	_blk_rq_sectors
	ldr	w8, [x22]
	lsr	w8, w0, w8
	ldr	x9, [x19]
	ldr	x10, [x23]
Lloh7:
	adrp	x11, _READ_10@GOTPAGE
Lloh8:
	ldr	x11, [x11, _READ_10@GOTPAGEOFF]
Lloh9:
	adrp	x12, _WRITE_10@GOTPAGE
Lloh10:
	ldr	x12, [x12, _WRITE_10@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	ldr	x10, [x19, #16]
	str	w9, [x10]
	dup.2s	v0, w21
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	str	d0, [x10, #8]
	lsr	w9, w21, #8
	stp	w9, w21, [x10, #16]
	lsr	w9, w8, #8
	stp	w9, w8, [x10, #28]
	mov	w8, #10
	str	w8, [x19, #24]
	mov	x0, x20
	bl	_blk_rq_bytes
	str	w0, [x19, #28]
	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 AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_UB_DIR_WRITE,8,3               ; @UB_DIR_WRITE
	.comm	_UB_DIR_READ,8,3                ; @UB_DIR_READ
	.comm	_READ_10,4,2                    ; @READ_10
	.comm	_WRITE_10,4,2                   ; @WRITE_10
	.no_dead_strip	_ub_cmd_build_block
.subsections_via_symbols
