	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1pci_detect                   ## -- Begin function t1pci_detect
	.p2align	4, 0x90
_t1pci_detect:                          ## @t1pci_detect
	.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
	callq	_b1dma_detect
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	%r14, %rdi
	movl	$-2147479552, %esi              ## imm = 0x80001000
	movl	$17, %edx
	callq	_WriteReg
	movl	$6, %ebx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.2:
	movq	%r14, %rdi
	movl	$-2146430976, %esi              ## imm = 0x80101000
	movl	$34, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_17
## %bb.3:
	movq	%r14, %rdi
	movl	$-2145382400, %esi              ## imm = 0x80201000
	movl	$51, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_17
## %bb.4:
	movq	%r14, %rdi
	movl	$-2144333824, %esi              ## imm = 0x80301000
	movl	$68, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_17
## %bb.5:
	movq	%r14, %rdi
	movl	$-2147479552, %esi              ## imm = 0x80001000
	callq	_ReadReg
	movl	$7, %ebx
	cmpl	$17, %eax
	jne	LBB0_17
## %bb.6:
	movq	%r14, %rdi
	movl	$-2146430976, %esi              ## imm = 0x80101000
	callq	_ReadReg
	cmpl	$34, %eax
	jne	LBB0_17
## %bb.7:
	movq	%r14, %rdi
	movl	$-2145382400, %esi              ## imm = 0x80201000
	callq	_ReadReg
	cmpl	$51, %eax
	jne	LBB0_17
## %bb.8:
	movq	%r14, %rdi
	movl	$-2144333824, %esi              ## imm = 0x80301000
	callq	_ReadReg
	cmpl	$68, %eax
	jne	LBB0_17
## %bb.9:
	movq	%r14, %rdi
	movl	$-2147479552, %esi              ## imm = 0x80001000
	movl	$85, %edx
	callq	_WriteReg
	movl	$8, %ebx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.10:
	movq	%r14, %rdi
	movl	$-2146430976, %esi              ## imm = 0x80101000
	movl	$102, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:
	movq	%r14, %rdi
	movl	$-2145382400, %esi              ## imm = 0x80201000
	movl	$119, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_17
## %bb.12:
	movq	%r14, %rdi
	movl	$-2144333824, %esi              ## imm = 0x80301000
	movl	$136, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:
	movq	%r14, %rdi
	movl	$-2147479552, %esi              ## imm = 0x80001000
	callq	_ReadReg
	movl	$9, %ebx
	cmpl	$85, %eax
	jne	LBB0_17
## %bb.14:
	movq	%r14, %rdi
	movl	$-2146430976, %esi              ## imm = 0x80101000
	callq	_ReadReg
	cmpl	$102, %eax
	jne	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	movl	$-2145382400, %esi              ## imm = 0x80201000
	callq	_ReadReg
	cmpl	$119, %eax
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movl	$-2144333824, %esi              ## imm = 0x80301000
	callq	_ReadReg
	xorl	%ecx, %ecx
	cmpl	$136, %eax
	setne	%cl
	leal	(%rcx,%rcx,8), %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t1pci_detect                   ; -- Begin function t1pci_detect
	.p2align	2
_t1pci_detect:                          ; @t1pci_detect
	.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, x0
	bl	_b1dma_detect
	cbnz	w0, LBB0_6
; %bb.1:
	mov	w20, #4096
	movk	w20, #32768, lsl #16
	mov	x0, x19
	mov	w1, #4096
	movk	w1, #32768, lsl #16
	mov	w2, #17
	bl	_WriteReg
	cbnz	x0, LBB0_5
; %bb.2:
	add	w1, w20, #256, lsl #12          ; =1048576
	mov	x0, x19
	mov	w2, #34
	bl	_WriteReg
	cbnz	x0, LBB0_5
; %bb.3:
	add	w1, w20, #512, lsl #12          ; =2097152
	mov	x0, x19
	mov	w2, #51
	bl	_WriteReg
	cbnz	x0, LBB0_5
; %bb.4:
	add	w1, w20, #768, lsl #12          ; =3145728
	mov	x0, x19
	mov	w2, #68
	bl	_WriteReg
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #6
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
	mov	w1, #4096
	movk	w1, #32768, lsl #16
	bl	_ReadReg
	cmp	w0, #17
	b.ne	LBB0_16
; %bb.8:
	add	w1, w20, #256, lsl #12          ; =1048576
	mov	x0, x19
	bl	_ReadReg
	cmp	w0, #34
	b.ne	LBB0_16
; %bb.9:
	add	w1, w20, #512, lsl #12          ; =2097152
	mov	x0, x19
	bl	_ReadReg
	cmp	w0, #51
	b.ne	LBB0_16
; %bb.10:
	add	w1, w20, #768, lsl #12          ; =3145728
	mov	x0, x19
	bl	_ReadReg
	cmp	w0, #68
	b.ne	LBB0_16
; %bb.11:
	mov	x0, x19
	mov	w1, #4096
	movk	w1, #32768, lsl #16
	mov	w2, #85
	bl	_WriteReg
	cbnz	x0, LBB0_15
; %bb.12:
	add	w1, w20, #256, lsl #12          ; =1048576
	mov	x0, x19
	mov	w2, #102
	bl	_WriteReg
	cbnz	x0, LBB0_15
; %bb.13:
	add	w1, w20, #512, lsl #12          ; =2097152
	mov	x0, x19
	mov	w2, #119
	bl	_WriteReg
	cbnz	x0, LBB0_15
; %bb.14:
	add	w1, w20, #768, lsl #12          ; =3145728
	mov	x0, x19
	mov	w2, #136
	bl	_WriteReg
	cbz	x0, LBB0_17
LBB0_15:
	mov	w0, #8
	b	LBB0_6
LBB0_16:
	mov	w0, #7
	b	LBB0_6
LBB0_17:
	mov	x0, x19
	mov	w1, #4096
	movk	w1, #32768, lsl #16
	bl	_ReadReg
	cmp	w0, #85
	b.ne	LBB0_21
; %bb.18:
	add	w1, w20, #256, lsl #12          ; =1048576
	mov	x0, x19
	bl	_ReadReg
	cmp	w0, #102
	b.ne	LBB0_21
; %bb.19:
	add	w1, w20, #512, lsl #12          ; =2097152
	mov	x0, x19
	bl	_ReadReg
	mov	x8, x0
	mov	w0, #9
	cmp	w8, #119
	b.ne	LBB0_6
; %bb.20:
	add	w1, w20, #768, lsl #12          ; =3145728
	mov	x0, x19
	bl	_ReadReg
	mov	x8, x0
	mov	w0, #9
	cmp	w8, #136
	csel	w0, wzr, w0, eq
	b	LBB0_6
LBB0_21:
	mov	w0, #9
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
