	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_set_ext_reg
_ast_set_ext_reg:                       ## @ast_set_ext_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rbx
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	cmpl	$32, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$16, %eax
	je	LBB0_5
## %bb.2:
	xorl	%r14d, %r14d
	cmpl	$8, %eax
	jne	LBB0_3
## %bb.4:
	movl	$1, %r15d
	jmp	LBB0_7
LBB0_6:
	movl	$2, %r14d
	movl	$8, %r15d
	jmp	LBB0_7
LBB0_5:
	movl	$2, %r14d
	movl	$4, %r15d
LBB0_7:
	movl	$112, %r8d
	jmp	LBB0_8
LBB0_3:
	xorl	%r8d, %r8d
	xorl	%r15d, %r15d
LBB0_8:
	movq	_AST_IO_CRTC_PORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$160, %edx
	movl	$143, %ecx
	callq	_ast_set_index_reg_mask
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$163, %edx
	movl	$240, %ecx
	movl	%r15d, %r8d
	callq	_ast_set_index_reg_mask
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$168, %edx
	movl	$253, %ecx
	movl	%r14d, %r8d
	callq	_ast_set_index_reg_mask
	movq	(%rbx), %rax
	movq	_AST2300@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.9:
	movq	_AST2400@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_AST2500@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.12:
	movq	_AST2100@GOTPCREL(%rip), %rcx
	movl	(%r12), %esi
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.13:
	movq	_AST1100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.14:
	movq	_AST2200@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.15:
	movq	_AST2150@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.17:
	movq	%rbx, %rdi
	movl	$167, %edx
	movl	$47, %ecx
	callq	_ast_set_index_reg
	movl	$31, %ecx
	jmp	LBB0_18
LBB0_11:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$167, %edx
	movl	$120, %ecx
	callq	_ast_set_index_reg
	movl	$96, %ecx
	jmp	LBB0_18
LBB0_16:
	movq	%rbx, %rdi
	movl	$167, %edx
	movl	$63, %ecx
	callq	_ast_set_index_reg
	movl	$47, %ecx
LBB0_18:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$166, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ast_set_index_reg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AST_IO_CRTC_PORT,4,2           ## @AST_IO_CRTC_PORT
	.comm	_AST2300,8,3                    ## @AST2300
	.comm	_AST2400,8,3                    ## @AST2400
	.comm	_AST2500,8,3                    ## @AST2500
	.comm	_AST2100,8,3                    ## @AST2100
	.comm	_AST1100,8,3                    ## @AST1100
	.comm	_AST2200,8,3                    ## @AST2200
	.comm	_AST2150,8,3                    ## @AST2150
	.no_dead_strip	_ast_set_ext_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_ext_reg
_ast_set_ext_reg:                       ; @ast_set_ext_reg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	x9, x8, [x0]
	ldr	x19, [x8]
	ldr	x8, [x9]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	lsl	w8, w8, #3
	cmp	w8, #32
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #16
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #8
	b.ne	LBB0_7
; %bb.3:
	mov	w20, #0
	mov	w21, #1
	b	LBB0_6
LBB0_4:
	mov	w20, #2
	mov	w21, #8
	b	LBB0_6
LBB0_5:
	mov	w20, #2
	mov	w21, #4
LBB0_6:
	mov	w4, #112
	b	LBB0_8
LBB0_7:
	mov	w4, #0
	mov	w21, #0
	mov	w20, #0
LBB0_8:
Lloh0:
	adrp	x22, _AST_IO_CRTC_PORT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AST_IO_CRTC_PORT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #160
	mov	w3, #143
	bl	_ast_set_index_reg_mask
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #163
	mov	w3, #240
	mov	x4, x21
	bl	_ast_set_index_reg_mask
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #168
	mov	w3, #253
	mov	x4, x20
	bl	_ast_set_index_reg_mask
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _AST2300@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AST2300@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _AST2400@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AST2400@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _AST2500@GOTPAGE
Lloh9:
	ldr	x11, [x11, _AST2500@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #167
	mov	w3, #120
	bl	_ast_set_index_reg
	mov	w3, #96
	b	LBB0_16
LBB0_10:
Lloh11:
	adrp	x9, _AST2100@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AST2100@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w1, [x22]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.11:
Lloh14:
	adrp	x9, _AST1100@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AST1100@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.12:
Lloh17:
	adrp	x9, _AST2200@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AST2200@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.13:
Lloh20:
	adrp	x9, _AST2150@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AST2150@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w2, #167
	mov	w3, #47
	bl	_ast_set_index_reg
	mov	w3, #31
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	mov	w2, #167
	mov	w3, #63
	bl	_ast_set_index_reg
	mov	w3, #47
LBB0_16:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #166
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ast_set_index_reg
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AST_IO_CRTC_PORT,4,2           ; @AST_IO_CRTC_PORT
	.comm	_AST2300,8,3                    ; @AST2300
	.comm	_AST2400,8,3                    ; @AST2400
	.comm	_AST2500,8,3                    ; @AST2500
	.comm	_AST2100,8,3                    ; @AST2100
	.comm	_AST1100,8,3                    ; @AST1100
	.comm	_AST2200,8,3                    ; @AST2200
	.comm	_AST2150,8,3                    ; @AST2150
	.no_dead_strip	_ast_set_ext_reg
.subsections_via_symbols
