	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_set_std_reg
_ast_set_std_reg:                       ## @ast_set_std_reg
	.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	(%rdi), %rax
	movq	(%rax), %r14
	movq	(%rdx), %r12
	movl	(%r12), %edx
	movq	_AST_IO_MISC_PORT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ast_io_write8
	movq	_AST_IO_SEQ_PORT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$3, %ecx
	callq	_ast_set_index_reg
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	orl	$32, %ecx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ast_set_index_reg
	movq	8(%r12), %rax
	movl	4(%rax), %ecx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_ast_set_index_reg
	movq	8(%r12), %rax
	movl	8(%rax), %ecx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_ast_set_index_reg
	movq	8(%r12), %rax
	movl	12(%rax), %ecx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_ast_set_index_reg
	movq	_AST_IO_CRTC_PORT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$17, %edx
	movl	$127, %ecx
	xorl	%r8d, %r8d
	callq	_ast_set_index_reg_mask
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ast_set_index_reg
	incq	%rbx
	cmpq	$25, %rbx
	jne	LBB0_1
## %bb.2:
	movq	_AST_IO_INPUT_STATUS1_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ast_io_read8
	xorl	%ebx, %ebx
	movq	_AST_IO_AR_PORT_WRITE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %r15d
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ast_io_write8
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ast_io_write8
	incq	%rbx
	cmpq	$20, %rbx
	jne	LBB0_3
## %bb.4:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$20, %edx
	callq	_ast_io_write8
	movl	(%r13), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ast_io_write8
	movq	_AST_IO_INPUT_STATUS1_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ast_io_read8
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_ast_io_write8
	movq	_AST_IO_GR_PORT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	32(%r12), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ast_set_index_reg
	movl	(%rbx), %esi
	movq	32(%r12), %rax
	movl	4(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ast_set_index_reg
	movl	(%rbx), %esi
	movq	32(%r12), %rax
	movl	8(%rax), %ecx
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_ast_set_index_reg
	movl	(%rbx), %esi
	movq	32(%r12), %rax
	movl	12(%rax), %ecx
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_ast_set_index_reg
	movl	(%rbx), %esi
	movq	32(%r12), %rax
	movl	16(%rax), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_ast_set_index_reg
	movl	(%rbx), %esi
	movq	32(%r12), %rax
	movl	20(%rax), %ecx
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_ast_set_index_reg
	movl	(%rbx), %esi
	movq	32(%r12), %rax
	movl	24(%rax), %ecx
	movq	%r14, %rdi
	movl	$6, %edx
	callq	_ast_set_index_reg
	movl	(%rbx), %esi
	movq	32(%r12), %rax
	movl	28(%rax), %ecx
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_ast_set_index_reg
	movl	(%rbx), %esi
	movq	32(%r12), %rax
	movl	32(%rax), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ast_set_index_reg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AST_IO_MISC_PORT_WRITE,4,2     ## @AST_IO_MISC_PORT_WRITE
	.comm	_AST_IO_SEQ_PORT,4,2            ## @AST_IO_SEQ_PORT
	.comm	_AST_IO_CRTC_PORT,4,2           ## @AST_IO_CRTC_PORT
	.comm	_AST_IO_INPUT_STATUS1_READ,4,2  ## @AST_IO_INPUT_STATUS1_READ
	.comm	_AST_IO_AR_PORT_WRITE,4,2       ## @AST_IO_AR_PORT_WRITE
	.comm	_AST_IO_GR_PORT,4,2             ## @AST_IO_GR_PORT
	.no_dead_strip	_ast_set_std_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_set_std_reg
_ast_set_std_reg:                       ; @ast_set_std_reg
	.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
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x22, [x2]
	ldr	w2, [x22]
Lloh0:
	adrp	x8, _AST_IO_MISC_PORT_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AST_IO_MISC_PORT_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ast_io_write8
Lloh3:
	adrp	x20, _AST_IO_SEQ_PORT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AST_IO_SEQ_PORT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #3
	bl	_ast_set_index_reg
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	orr	w3, w8, #0x20
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_ast_set_index_reg
	ldr	x8, [x22, #8]
	ldr	w3, [x8, #4]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #2
	bl	_ast_set_index_reg
	ldr	x8, [x22, #8]
	ldr	w3, [x8, #8]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #3
	bl	_ast_set_index_reg
	ldr	x8, [x22, #8]
	ldr	w3, [x8, #12]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #4
	bl	_ast_set_index_reg
Lloh5:
	adrp	x21, _AST_IO_CRTC_PORT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _AST_IO_CRTC_PORT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #17
	mov	w3, #127
	mov	w4, #0
	bl	_ast_set_index_reg_mask
	mov	x20, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	x8, [x22, #16]
	ldr	w3, [x8, x20, lsl #2]
	mov	x0, x19
	mov	x2, x20
	bl	_ast_set_index_reg
	add	x20, x20, #1
	cmp	x20, #25
	b.ne	LBB0_1
; %bb.2:
Lloh7:
	adrp	x23, _AST_IO_INPUT_STATUS1_READ@GOTPAGE
Lloh8:
	ldr	x23, [x23, _AST_IO_INPUT_STATUS1_READ@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ast_io_read8
	mov	x20, #0
Lloh9:
	adrp	x24, _AST_IO_AR_PORT_WRITE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AST_IO_AR_PORT_WRITE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #24]
	ldr	w21, [x8, x20, lsl #2]
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_ast_io_write8
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_ast_io_write8
	add	x20, x20, #1
	cmp	x20, #20
	b.ne	LBB0_3
; %bb.4:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #20
	bl	_ast_io_write8
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_ast_io_write8
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ast_io_read8
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #32
	bl	_ast_io_write8
Lloh11:
	adrp	x20, _AST_IO_GR_PORT@GOTPAGE
Lloh12:
	ldr	x20, [x20, _AST_IO_GR_PORT@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x8, [x22, #32]
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ast_set_index_reg
	ldr	w1, [x20]
	ldr	x8, [x22, #32]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w2, #1
	bl	_ast_set_index_reg
	ldr	w1, [x20]
	ldr	x8, [x22, #32]
	ldr	w3, [x8, #8]
	mov	x0, x19
	mov	w2, #2
	bl	_ast_set_index_reg
	ldr	w1, [x20]
	ldr	x8, [x22, #32]
	ldr	w3, [x8, #12]
	mov	x0, x19
	mov	w2, #3
	bl	_ast_set_index_reg
	ldr	w1, [x20]
	ldr	x8, [x22, #32]
	ldr	w3, [x8, #16]
	mov	x0, x19
	mov	w2, #4
	bl	_ast_set_index_reg
	ldr	w1, [x20]
	ldr	x8, [x22, #32]
	ldr	w3, [x8, #20]
	mov	x0, x19
	mov	w2, #5
	bl	_ast_set_index_reg
	ldr	w1, [x20]
	ldr	x8, [x22, #32]
	ldr	w3, [x8, #24]
	mov	x0, x19
	mov	w2, #6
	bl	_ast_set_index_reg
	ldr	w1, [x20]
	ldr	x8, [x22, #32]
	ldr	w3, [x8, #28]
	mov	x0, x19
	mov	w2, #7
	bl	_ast_set_index_reg
	ldr	w1, [x20]
	ldr	x8, [x22, #32]
	ldr	w3, [x8, #32]
	mov	x0, x19
	mov	w2, #8
	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	_ast_set_index_reg
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AST_IO_MISC_PORT_WRITE,4,2     ; @AST_IO_MISC_PORT_WRITE
	.comm	_AST_IO_SEQ_PORT,4,2            ; @AST_IO_SEQ_PORT
	.comm	_AST_IO_CRTC_PORT,4,2           ; @AST_IO_CRTC_PORT
	.comm	_AST_IO_INPUT_STATUS1_READ,4,2  ; @AST_IO_INPUT_STATUS1_READ
	.comm	_AST_IO_AR_PORT_WRITE,4,2       ; @AST_IO_AR_PORT_WRITE
	.comm	_AST_IO_GR_PORT,4,2             ; @AST_IO_GR_PORT
	.no_dead_strip	_ast_set_std_reg
.subsections_via_symbols
