	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ast_init_3rdtx                 ## -- Begin function ast_init_3rdtx
	.p2align	4, 0x90
_ast_init_3rdtx:                        ## @ast_init_3rdtx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_AST2300@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_AST2400@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_AST_IO_CRTC_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$209, %edx
	movl	$255, %ecx
	callq	_ast_get_index_reg_mask
	andl	$14, %eax
	cmpl	$12, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$8, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$4, %eax
	je	LBB0_5
## %bb.7:
	movl	8(%rbx), %eax
	movq	_AST_TX_SIL164@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ast_init_dvo                   ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ast_launch_m68k                ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ast_init_analog                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AST2300,8,3                    ## @AST2300
	.comm	_AST2400,8,3                    ## @AST2400
	.comm	_AST_IO_CRTC_PORT,4,2           ## @AST_IO_CRTC_PORT
	.comm	_AST_TX_SIL164,4,2              ## @AST_TX_SIL164
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ast_init_3rdtx                 ; -- Begin function ast_init_3rdtx
	.p2align	2
_ast_init_3rdtx:                        ; @ast_init_3rdtx
	.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
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AST2300@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AST2300@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _AST2400@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AST2400@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _AST_IO_CRTC_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AST_IO_CRTC_PORT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #209
	mov	w3, #255
	bl	_ast_get_index_reg_mask
	and	w8, w0, #0xe
	cmp	w8, #12
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #8
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #4
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x20, #8]
Lloh9:
	adrp	x9, _AST_TX_SIL164@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AST_TX_SIL164@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ast_init_dvo
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ast_launch_m68k
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ast_init_analog
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AST2300,8,3                    ; @AST2300
	.comm	_AST2400,8,3                    ; @AST2400
	.comm	_AST_IO_CRTC_PORT,4,2           ; @AST_IO_CRTC_PORT
	.comm	_AST_TX_SIL164,4,2              ; @AST_TX_SIL164
.subsections_via_symbols
