	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_komeda_fb_get_pixel_addr       ## -- Begin function komeda_fb_get_pixel_addr
	.p2align	4, 0x90
_komeda_fb_get_pixel_addr:              ## @komeda_fb_get_pixel_addr
	.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	16(%rdi), %rax
	cmpl	%ecx, (%rax)
	jle	LBB0_1
## %bb.2:
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movl	%ecx, %esi
	callq	_drm_fb_cma_get_gem_obj
	movq	(%r15), %rcx
	movslq	%ebx, %r14
	movl	(%rcx,%r14,4), %ebx
	cmpl	$0, 24(%r15)
	jne	LBB0_7
## %bb.3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rdi
	movl	%r14d, %esi
	callq	_drm_format_info_block_width
	movl	%eax, %ecx
	movq	16(%r15), %rsi
	movq	8(%rsi), %rax
	movl	(%rax,%r14,4), %edi
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	movl	%r13d, %eax
	cltd
	idivl	16(%rsi)
	movl	20(%rsi), %esi
	movl	%eax, %r13d
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movl	$1, %esi
LBB0_6:
	movl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%eax, %esi
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	imull	%edi, %eax
	movq	8(%r15), %rcx
	imull	(%rcx,%r14,4), %esi
	addl	%ebx, %eax
	addl	%esi, %eax
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_7:
	addl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of max plane num.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_komeda_fb_get_pixel_addr       ; -- Begin function komeda_fb_get_pixel_addr
	.p2align	2
_komeda_fb_get_pixel_addr:              ; @komeda_fb_get_pixel_addr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, w3
	b.le	LBB0_4
; %bb.1:
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x1, x3
	bl	_drm_fb_cma_get_gem_obj
	mov	x22, x0
	ldr	x8, [x20]
	ldr	w24, [x8, w23, sxtw #2]
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_7
; %bb.2:
	sxtw	x25, w23
	ldr	x0, [x20, #16]
	mov	x1, x23
	bl	_drm_format_info_block_width
	ldr	x9, [x20, #16]
	ldr	x8, [x9, #8]
	ldr	w8, [x8, x25, lsl #2]
	cbz	w23, LBB0_5
; %bb.3:
	ldp	w10, w9, [x9, #16]
	sdiv	w21, w21, w10
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	mov	w9, #1
LBB0_6:
	sdiv	w10, w21, w0
	ldr	x11, [x20, #8]
	ldr	w11, [x11, x25, lsl #2]
	madd	w8, w10, w8, w24
	sdiv	w9, w19, w9
	madd	w24, w11, w9, w8
LBB0_7:
	ldr	w8, [x22]
	add	w0, w8, w24
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of max plane num.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
