	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsx_pci_enable_bus_int
_rtsx_pci_enable_bus_int:               ## @rtsx_pci_enable_bus_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_TRANS_OK_INT_EN@GOTPCREL(%rip), %rax
	movq	_TRANS_FAIL_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_SD_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	8(%rdi), %edx
	movl	%edx, (%rdi)
	cmpl	$2, 4(%rdi)
	jl	LBB0_2
## %bb.1:
	movq	_MS_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rbx)
LBB0_2:
	movq	_RTSX_BIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtsx_pci_writel
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pcr_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANS_OK_INT_EN,4,2            ## @TRANS_OK_INT_EN
	.comm	_TRANS_FAIL_INT_EN,4,2          ## @TRANS_FAIL_INT_EN
	.comm	_SD_INT_EN,4,2                  ## @SD_INT_EN
	.comm	_MS_INT_EN,4,2                  ## @MS_INT_EN
	.comm	_RTSX_BIER,4,2                  ## @RTSX_BIER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTSX_BIER: 0x%08x\n"

	.no_dead_strip	_rtsx_pci_enable_bus_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsx_pci_enable_bus_int
_rtsx_pci_enable_bus_int:               ; @rtsx_pci_enable_bus_int
	.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
Lloh0:
	adrp	x8, _TRANS_OK_INT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANS_OK_INT_EN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TRANS_FAIL_INT_EN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TRANS_FAIL_INT_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _SD_INT_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SD_INT_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldp	w10, w9, [x0, #4]
	orr	w2, w8, w9
	str	w2, [x0]
	cmp	w10, #2
	b.lt	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _MS_INT_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MS_INT_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w2, w8, w2
	str	w2, [x19]
LBB0_2:
Lloh12:
	adrp	x8, _RTSX_BIER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTSX_BIER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtsx_pci_writel
	ldr	w2, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pcr_dbg
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANS_OK_INT_EN,4,2            ; @TRANS_OK_INT_EN
	.comm	_TRANS_FAIL_INT_EN,4,2          ; @TRANS_FAIL_INT_EN
	.comm	_SD_INT_EN,4,2                  ; @SD_INT_EN
	.comm	_MS_INT_EN,4,2                  ; @MS_INT_EN
	.comm	_RTSX_BIER,4,2                  ; @RTSX_BIER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTSX_BIER: 0x%08x\n"

	.no_dead_strip	_rtsx_pci_enable_bus_int
.subsections_via_symbols
