	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vga_get_pixel
_vga_get_pixel:                         ## @vga_get_pixel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	imull	(%rdi), %edx
	leal	7(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$3, %eax
	leal	7(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	movl	%ecx, %edx
	sarl	$3, %edx
	addl	%eax, %edx
	andl	$-8, %ecx
	subl	%ecx, %esi
	movq	_KB@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movslq	%edx, %r9
	movq	8(%rdi), %r11
	movl	(%r11,%r9,4), %eax
	movb	$7, %cl
	subb	%sil, %cl
	movzbl	%cl, %ecx
	xorl	%r10d, %r10d
	btq	%rcx, %rax
	setb	%r10b
	movl	%r8d, %eax
	leal	(%r8,%r8,2), %esi
	movl	%r8d, %edx
	shll	$6, %edx
	addl	%r9d, %edx
	movslq	%edx, %rdx
	movl	(%r11,%rdx,4), %edx
	shrq	%cl, %rdx
	andl	$1, %edx
	shll	$7, %eax
	addl	%r9d, %eax
	cltq
	movl	(%r11,%rax,4), %eax
	shrq	%cl, %rax
	leal	(%r10,%rdx,2), %edx
	movq	40(%rdi), %r8
	andl	$1, %eax
	leal	(%rdx,%rax,4), %eax
	shll	$6, %esi
	addl	%r9d, %esi
	movslq	%esi, %rdx
	movl	(%r11,%rdx,4), %edx
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rdx
	andl	$1, %edx
	leal	(%rax,%rdx,8), %eax
	andl	24(%rdi), %eax
	movq	_ATC_MC_IPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r8,%rax,4), %eax
	testl	%ecx, 32(%rdi)
	je	LBB0_2
## %bb.1:
	andl	$15, %eax
	orq	48(%rdi), %rax
	jmp	LBB0_3
LBB0_2:
	cltq
LBB0_3:
	orq	56(%rdi), %rax
	movq	16(%rdi), %rcx
	movl	(%rcx,%rax,4), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KB,4,2                         ## @KB
	.comm	_ATC_MC_IPS,4,2                 ## @ATC_MC_IPS
	.no_dead_strip	_vga_get_pixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vga_get_pixel
_vga_get_pixel:                         ; @vga_get_pixel
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	mul	w8, w8, w2
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	add	w9, w1, #7
	cmp	w1, #0
	csel	w9, w9, w1, lt
	add	w8, w8, w9, asr #3
	and	w9, w9, #0xfffffff8
	sub	w9, w9, w1
	add	w9, w9, #7
	ldr	x10, [x0, #8]
Lloh0:
	adrp	x11, _KB@GOTPAGE
Lloh1:
	ldr	x11, [x11, _KB@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	ldr	w12, [x10, w8, sxtw #2]
	add	w13, w8, w11, lsl #6
	ldr	w13, [x10, w13, sxtw #2]
	lsr	x12, x12, x9
	lsr	x13, x13, x9
	lsl	w13, w13, #1
	and	x13, x13, #0x2
	bfxil	x13, x12, #0, #1
	add	w12, w8, w11, lsl #7
	ldr	w12, [x10, w12, sxtw #2]
	lsr	x12, x12, x9
	lsl	w12, w12, #2
	and	x12, x12, #0x4
	orr	x12, x13, x12
	mov	w13, #192
	madd	w8, w11, w13, w8
	ldr	w8, [x10, w8, sxtw #2]
	lsr	x8, x8, x9
	lsl	w8, w8, #3
	and	x8, x8, #0x8
	orr	x8, x12, x8
	ldr	x9, [x0, #24]
	and	x8, x9, x8
Lloh3:
	adrp	x9, _ATC_MC_IPS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATC_MC_IPS@GOTPAGEOFF]
	ldr	w10, [x0, #32]
Lloh5:
	ldr	w9, [x9]
	ldr	x11, [x0, #40]
	ldr	w8, [x11, x8, lsl #2]
	tst	w9, w10
	b.eq	LBB0_2
; %bb.1:
	and	x8, x8, #0xf
	ldr	x9, [x0, #48]
	orr	x8, x9, x8
	b	LBB0_3
LBB0_2:
	sxtw	x8, w8
LBB0_3:
	ldr	x9, [x0, #56]
	orr	x8, x9, x8
	ldr	x9, [x0, #16]
	ldr	w0, [x9, x8, lsl #2]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KB,4,2                         ; @KB
	.comm	_ATC_MC_IPS,4,2                 ; @ATC_MC_IPS
	.no_dead_strip	_vga_get_pixel
.subsections_via_symbols
