	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_set_def_ext_reg
_ast_set_def_ext_reg:                   ## @ast_set_def_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	%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, %r14
	movq	8(%rdi), %r15
	movl	$129, %ebx
	movq	_AST_IO_CRTC_PORT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_ast_set_index_reg
	incl	%ebx
	cmpl	$160, %ebx
	jne	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	_AST2300@GOTPCREL(%rip), %r13
	movq	_AST2400@GOTPCREL(%rip), %rdx
	movq	_AST2500@GOTPCREL(%rip), %rcx
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.3:
	cmpq	(%rdx), %rax
	je	LBB0_6
## %bb.4:
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_extreginfo@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	(%r14), %rax
	cmpl	$32, (%rax)
	jl	LBB0_7
## %bb.8:
	movq	_extreginfo_ast2300@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_extreginfo_ast2300a0@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %r14
	movl	(%r14), %r8d
	cmpl	$255, %r8d
	je	LBB0_12
## %bb.10:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	159(%rbx), %edx
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_ast_set_index_reg_mask
	movl	(%r14,%rbx,4), %r8d
	incq	%rbx
	cmpl	$255, %r8d
	jne	LBB0_11
LBB0_12:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$140, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_ast_set_index_reg_mask
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$183, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ast_set_index_reg_mask
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	sete	%cl
	movq	_AST2400@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	orb	%cl, %dl
	movq	_AST2500@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	orb	%dl, %al
	movzbl	%al, %r8d
	shll	$5, %r8d
	orl	$4, %r8d
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$182, %edx
	movl	$255, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ast_set_index_reg_mask         ## 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	_extreginfo_ast2300,8,3         ## @extreginfo_ast2300
	.comm	_extreginfo_ast2300a0,8,3       ## @extreginfo_ast2300a0
	.comm	_extreginfo,8,3                 ## @extreginfo
	.no_dead_strip	_ast_set_def_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_def_ext_reg
_ast_set_def_ext_reg:                   ; @ast_set_def_ext_reg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	w21, #129
Lloh0:
	adrp	x22, _AST_IO_CRTC_PORT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AST_IO_CRTC_PORT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_ast_set_index_reg
	add	w21, w21, #1
	cmp	w21, #160
	b.ne	LBB0_1
; %bb.2:
	ldr	x8, [x19]
Lloh2:
	adrp	x21, _AST2300@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AST2300@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh4:
	adrp	x23, _AST2400@GOTPAGE
Lloh5:
	ldr	x23, [x23, _AST2400@GOTPAGEOFF]
	ldr	x10, [x23]
Lloh6:
	adrp	x24, _AST2500@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AST2500@GOTPAGEOFF]
	ldr	x11, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _extreginfo_ast2300a0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _extreginfo_ast2300a0@GOTPAGEOFF]
Lloh10:
	adrp	x10, _extreginfo_ast2300@GOTPAGE
Lloh11:
	ldr	x10, [x10, _extreginfo_ast2300@GOTPAGEOFF]
	cmp	w8, #31
	csel	x8, x10, x9, gt
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _extreginfo@GOTPAGE
Lloh13:
	ldr	x8, [x8, _extreginfo@GOTPAGEOFF]
LBB0_5:
	ldr	x20, [x8]
	ldr	w4, [x20]
	cmp	w4, #255
	b.eq	LBB0_8
; %bb.6:
	mov	w25, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w2, w25, #159
	ldr	w1, [x22]
	mov	x0, x19
	mov	w3, #0
	bl	_ast_set_index_reg_mask
	ldr	w4, [x20, x25, lsl #2]
	add	x25, x25, #1
	cmp	w4, #255
	b.ne	LBB0_7
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #140
	mov	w3, #0
	mov	w4, #1
	bl	_ast_set_index_reg_mask
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #183
	mov	w3, #0
	mov	w4, #0
	bl	_ast_set_index_reg_mask
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	x10, [x23]
	ldr	x11, [x24]
	cmp	x8, x11
	ccmp	x8, x10, #4, ne
	ccmp	x8, x9, #4, ne
	mov	w8, #4
	mov	w9, #36
	csel	w4, w9, w8, eq
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #182
	mov	w3, #255
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ast_set_index_reg_mask
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.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	_extreginfo_ast2300,8,3         ; @extreginfo_ast2300
	.comm	_extreginfo_ast2300a0,8,3       ; @extreginfo_ast2300a0
	.comm	_extreginfo,8,3                 ; @extreginfo
	.no_dead_strip	_ast_set_def_ext_reg
.subsections_via_symbols
