	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bochs_dispi_write
_bochs_dispi_write:                     ## @bochs_dispi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edx, %ebx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addl	%esi, %esi
	movslq	%esi, %rcx
	leaq	(%rcx,%rax), %rsi
	addq	$1280, %rsi                     ## imm = 0x500
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writew                         ## TAILCALL
LBB0_2:
	movq	_VBE_DISPI_IOPORT_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%esi, %edi
	movl	%eax, %esi
	callq	_outw
	movq	_VBE_DISPI_IOPORT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_outw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VBE_DISPI_IOPORT_INDEX,4,2     ## @VBE_DISPI_IOPORT_INDEX
	.comm	_VBE_DISPI_IOPORT_DATA,4,2      ## @VBE_DISPI_IOPORT_DATA
	.no_dead_strip	_bochs_dispi_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bochs_dispi_write
_bochs_dispi_write:                     ; @bochs_dispi_write
	.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, x2
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	lsl	w9, w1, #1
	add	w9, w9, #1280
	add	x1, x8, w9, sxtw
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writew
LBB0_2:
Lloh0:
	adrp	x8, _VBE_DISPI_IOPORT_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VBE_DISPI_IOPORT_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x8
	bl	_outw
Lloh3:
	adrp	x8, _VBE_DISPI_IOPORT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VBE_DISPI_IOPORT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outw
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VBE_DISPI_IOPORT_INDEX,4,2     ; @VBE_DISPI_IOPORT_INDEX
	.comm	_VBE_DISPI_IOPORT_DATA,4,2      ; @VBE_DISPI_IOPORT_DATA
	.no_dead_strip	_bochs_dispi_write
.subsections_via_symbols
