	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ili9225_dbi_command
_ili9225_dbi_command:                   ## @ili9225_dbi_command
	.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, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movl	$1, %esi
	movq	%r12, %rdi
	callq	_mipi_dbi_spi_cmd_max_speed
	movl	$1, %r8d
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	movq	%r13, %rcx
	callq	_mipi_dbi_spi_transfer
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	(%r13), %rax
	movq	_ILI9225_WRITE_DATA_TO_GRAM@GOTPCREL(%rip), %rcx
	movl	$8, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpl	$0, 4(%rbx)
	sete	%al
	leal	8(,%rax,8), %r13d
LBB0_4:
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mipi_dbi_spi_cmd_max_speed
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mipi_dbi_spi_transfer          ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ILI9225_WRITE_DATA_TO_GRAM,8,3 ## @ILI9225_WRITE_DATA_TO_GRAM
	.no_dead_strip	_ili9225_dbi_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ili9225_dbi_command
_ili9225_dbi_command:                   ; @ili9225_dbi_command
	.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	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x0]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
	mov	x0, x21
	mov	w1, #1
	bl	_mipi_dbi_spi_cmd_max_speed
	mov	x1, x0
	mov	x0, x21
	mov	w2, #8
	mov	x3, x23
	mov	w4, #1
	bl	_mipi_dbi_spi_transfer
	cbz	x19, LBB0_5
; %bb.1:
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _ILI9225_WRITE_DATA_TO_GRAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ILI9225_WRITE_DATA_TO_GRAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w23, #8
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x22, #4]
	mov	w9, #16
	cmp	w8, #0
	csel	w23, w9, w23, eq
LBB0_4:
	ldr	w0, [x22]
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	mov	x0, x21
	mov	x1, x19
	bl	_mipi_dbi_spi_cmd_max_speed
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	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
	b	_mipi_dbi_spi_transfer
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ILI9225_WRITE_DATA_TO_GRAM,8,3 ; @ILI9225_WRITE_DATA_TO_GRAM
	.no_dead_strip	_ili9225_dbi_command
.subsections_via_symbols
