	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b1pciv4_detect                 ## -- Begin function b1pciv4_detect
	.p2align	4, 0x90
_b1pciv4_detect:                        ## @b1pciv4_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_29
## %bb.1:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$33, %edx
	callq	_WriteReg
	movl	$6, %ebx
	testq	%rax, %rax
	jne	LBB0_29
## %bb.2:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	testb	$1, %al
	jne	LBB0_4
LBB0_6:
	movl	$7, %ebx
	jmp	LBB0_29
LBB0_4:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$33, %edx
	callq	_WriteReg
	testq	%rax, %rax
	je	LBB0_5
LBB0_29:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	testb	$1, %al
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$33, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_29
## %bb.8:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	testb	$1, %al
	je	LBB0_6
## %bb.10:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$33, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_29
## %bb.11:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	testb	$1, %al
	je	LBB0_6
## %bb.13:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$33, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_29
## %bb.14:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	movl	$7, %ebx
	testb	$1, %al
	je	LBB0_29
## %bb.15:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$32, %edx
	callq	_WriteReg
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:
	movl	$8, %ebx
	jmp	LBB0_29
LBB0_17:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	movl	$9, %ebx
	testb	$1, %al
	jne	LBB0_29
## %bb.18:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$32, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_16
## %bb.20:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	testb	$1, %al
	jne	LBB0_29
## %bb.21:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$32, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_16
## %bb.23:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	testb	$1, %al
	jne	LBB0_29
## %bb.24:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$32, %edx
	callq	_WriteReg
	testq	%rax, %rax
	jne	LBB0_16
## %bb.26:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	testb	$1, %al
	jne	LBB0_29
## %bb.27:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	movl	$32, %edx
	callq	_WriteReg
	movl	$8, %ebx
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	movl	$-2136997888, %esi              ## imm = 0x80A00000
	callq	_ReadReg
	movl	%eax, %ebx
	andl	$1, %ebx
	negl	%ebx
	andl	$9, %ebx
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b1pciv4_detect                 ; -- Begin function b1pciv4_detect
	.p2align	2
_b1pciv4_detect:                        ; @b1pciv4_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_5
; %bb.1:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #33
	bl	_WriteReg
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #6
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	tbnz	w0, #0, LBB0_6
LBB0_4:
	mov	w0, #7
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #33
	bl	_WriteReg
	cbnz	x0, LBB0_2
; %bb.7:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	tbz	w0, #0, LBB0_4
; %bb.8:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #33
	bl	_WriteReg
	cbnz	x0, LBB0_2
; %bb.9:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	tbz	w0, #0, LBB0_4
; %bb.10:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #33
	bl	_WriteReg
	cbnz	x0, LBB0_2
; %bb.11:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	tbz	w0, #0, LBB0_4
; %bb.12:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #33
	bl	_WriteReg
	cbnz	x0, LBB0_2
; %bb.13:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	tbz	w0, #0, LBB0_4
; %bb.14:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #32
	bl	_WriteReg
	cbz	x0, LBB0_16
LBB0_15:
	mov	w0, #8
	b	LBB0_5
LBB0_16:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	tbnz	w0, #0, LBB0_25
; %bb.17:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #32
	bl	_WriteReg
	cbnz	x0, LBB0_15
; %bb.18:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	tbnz	w0, #0, LBB0_25
; %bb.19:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #32
	bl	_WriteReg
	cbnz	x0, LBB0_15
; %bb.20:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	tbnz	w0, #0, LBB0_25
; %bb.21:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #32
	bl	_WriteReg
	cbnz	x0, LBB0_15
; %bb.22:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	tbnz	w0, #0, LBB0_25
; %bb.23:
	mov	x0, x19
	mov	w1, #-2136997888
	mov	w2, #32
	bl	_WriteReg
	cbnz	x0, LBB0_15
; %bb.24:
	mov	x0, x19
	mov	w1, #-2136997888
	bl	_ReadReg
	sbfx	w8, w0, #0, #1
	mov	w9, #9
	and	w0, w8, w9
	b	LBB0_5
LBB0_25:
	mov	w0, #9
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
