	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcib_isrc_mask
_tegra_pcib_isrc_mask:                  ## @tegra_pcib_isrc_mask
	.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	%rdx, %r15
	movl	(%rsi), %eax
	movq	_AFI_MSI_INTR_IN_REG@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r14d
	movl	%edx, %ecx
	movl	$1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	movq	%rdi, %r13
	movslq	%r12d, %rbx
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_AFI_MSI_VEC
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_AFI_WR4
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_AFI_MSI_EN_VEC
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_AFI_RD4
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	orq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	jmp	LBB0_5
LBB0_4:
	notl	%r12d
	movslq	%r12d, %rax
	andq	%rax, %rbx
LBB0_5:
	movl	%r14d, %edi
	callq	_AFI_MSI_EN_VEC
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AFI_WR4                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AFI_MSI_INTR_IN_REG,4,2        ## @AFI_MSI_INTR_IN_REG
	.no_dead_strip	_tegra_pcib_isrc_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pcib_isrc_mask
_tegra_pcib_isrc_mask:                  ; @tegra_pcib_isrc_mask
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _AFI_MSI_INTR_IN_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AFI_MSI_INTR_IN_REG@GOTPAGEOFF]
	ldr	w9, [x1]
Lloh2:
	ldr	w8, [x8]
	sdiv	w21, w9, w8
	msub	w8, w21, w8, w9
	mov	w9, #1
	lsl	w22, w9, w8
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_AFI_MSI_VEC
	mov	x1, x0
	sxtw	x2, w22
	mov	x0, x19
	bl	_AFI_WR4
LBB0_2:
	mov	x0, x21
	bl	_AFI_MSI_EN_VEC
	mov	x1, x0
	mov	x0, x19
	bl	_AFI_RD4
	mvn	w8, w22
	sxtw	x8, w8
	and	x8, x0, x8
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x9, w22
	orr	x9, x0, x9
	cmp	x20, #0
	csel	x20, x8, x9, eq
	mov	x0, x21
	bl	_AFI_MSI_EN_VEC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AFI_WR4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AFI_MSI_INTR_IN_REG,4,2        ; @AFI_MSI_INTR_IN_REG
	.no_dead_strip	_tegra_pcib_isrc_mask
.subsections_via_symbols
