	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_fbuf_write
_pci_fbuf_write:                        ## @pci_fbuf_write
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r14
	movq	%rdx, %rbx
	movq	16(%rbp), %r15
	xorl	%edi, %edi
	testl	%ecx, %ecx
	sete	%dil
	callq	_assert
	movq	(%rbx), %rbx
	movq	_DEBUG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_DPRINTF
	movslq	%r12d, %rax
	addq	%r14, %rax
	movq	_DMEMSZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_1
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_1:
	leal	-1(%r12), %eax
	cmpl	$7, %eax
	ja	LBB0_4
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	%r15, 8(%rbx,%r14,8)
LBB0_5:
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	cmpl	$0, (%rcx)
	je	LBB0_6
## %bb.9:
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_DEBUG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_DPRINTF
	movq	(%rbx), %rax
	movl	$0, (%rax)
	jmp	LBB0_12
LBB0_6:
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	cmpq	$0, 16(%rbx)
	jne	LBB0_12
## %bb.8:
	movq	_DEBUG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_DPRINTF
	movq	(%rbx), %rax
	movl	$1, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_DEBUG_VERBOSE,4,2              ## @DEBUG_VERBOSE
	.comm	_DMEMSZ,8,3                     ## @DMEMSZ
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"fbuf: write too large, offset %ld size %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"fbuf: write unknown size %d\n"

	.comm	_DEBUG_INFO,4,2                 ## @DEBUG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"switching to VGA mode\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"switching to VESA mode\r\n"

	.no_dead_strip	_pci_fbuf_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_fbuf_write
_pci_fbuf_write:                        ; @pci_fbuf_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x6
	mov	x20, x5
	mov	x19, x4
	mov	x22, x2
	cmp	w3, #0
	cset	w0, eq
	bl	_assert
	ldr	x22, [x22]
Lloh0:
	adrp	x8, _DEBUG_VERBOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_VERBOSE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_DPRINTF
	add	x8, x19, w20, sxtw
Lloh3:
	adrp	x9, _DMEMSZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMEMSZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.1:
	str	x20, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
	sub	w9, w20, #1
	cmp	w9, #7
	b.hi	LBB0_13
; %bb.4:
	add	x8, x22, #8
Lloh8:
	adrp	x10, lJTI0_0@PAGE
Lloh9:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
	str	x21, [x8, x19, lsl #3]
LBB0_6:
	ldp	x9, x8, [x22]
	ldr	w9, [x9]
	cbz	w9, LBB0_10
; %bb.7:
	cbz	x8, LBB0_2
; %bb.8:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_2
; %bb.9:
Lloh10:
	adrp	x8, _DEBUG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEBUG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DPRINTF
	ldr	x8, [x22]
	str	wzr, [x8]
	b	LBB0_2
LBB0_10:
	cbnz	x8, LBB0_2
; %bb.11:
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_2
; %bb.12:
Lloh15:
	adrp	x8, _DEBUG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DEBUG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DPRINTF
	ldr	x8, [x22]
	mov	w9, #1
	str	w9, [x8]
	stp	xzr, xzr, [x22, #24]
	b	LBB0_2
LBB0_13:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_printf
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
                                        ; -- End function
	.comm	_DEBUG_VERBOSE,4,2              ; @DEBUG_VERBOSE
	.comm	_DMEMSZ,8,3                     ; @DMEMSZ
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"fbuf: write too large, offset %ld size %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"fbuf: write unknown size %d\n"

	.comm	_DEBUG_INFO,4,2                 ; @DEBUG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"switching to VGA mode\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"switching to VESA mode\r\n"

	.no_dead_strip	_pci_fbuf_write
.subsections_via_symbols
