	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_cmd_to_buffer
_copy_cmd_to_buffer:                    ## @copy_cmd_to_buffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %rdi
	leal	4(%rdi), %eax
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	movl	%eax, (%rbx)
	movq	_CMD_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, (%rbx)
	movl	$4, %edx
	callq	_memcpy
	movl	(%rbx), %edi
	movq	_MMIO_CMD_TAIL_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_BUFFER_SIZE,4,2            ## @CMD_BUFFER_SIZE
	.comm	_MMIO_CMD_TAIL_OFFSET,8,3       ## @MMIO_CMD_TAIL_OFFSET
	.no_dead_strip	_copy_cmd_to_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_cmd_to_buffer
_copy_cmd_to_buffer:                    ; @copy_cmd_to_buffer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldrsw	x9, [x0]
	add	x0, x8, x9, lsl #2
	add	w8, w9, #4
	str	w8, [x19]
Lloh0:
	adrp	x9, _CMD_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _MMIO_CMD_TAIL_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMIO_CMD_TAIL_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_BUFFER_SIZE,4,2            ; @CMD_BUFFER_SIZE
	.comm	_MMIO_CMD_TAIL_OFFSET,8,3       ; @MMIO_CMD_TAIL_OFFSET
	.no_dead_strip	_copy_cmd_to_buffer
.subsections_via_symbols
