	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_msi_sid
_set_msi_sid:                           ## @set_msi_sid
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.2:
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movq	_set_msi_sid_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_for_each_dma_alias
	movl	-48(%rbp), %edi
	callq	_PCI_BUS_NUM
	movq	-40(%rbp), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	-56(%rbp), %ecx
	movq	(%rbx), %rdx
	movq	(%rdx), %rdx
	cmpl	$2, %ecx
	jl	LBB0_8
## %bb.5:
	cmpl	%ecx, -52(%rbp)
	jne	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_set_irte_verify_bus
	jmp	LBB0_12
LBB0_3:
	movl	-48(%rbp), %edi
	callq	_PCI_BUS_NUM
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_set_irte_verify_bus
	jmp	LBB0_12
LBB0_8:
	movq	_SVT_VERIFY_SID_SQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_SQ_ALL_16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmpq	%rdx, %rax
	jne	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	callq	_pci_dev_id
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	jmp	LBB0_11
LBB0_9:
	movl	-48(%rbp), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
LBB0_11:
	callq	_set_irte_sid
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_set_msi_sid_cb,4,2             ## @set_msi_sid_cb
	.comm	_SVT_VERIFY_SID_SQ,4,2          ## @SVT_VERIFY_SID_SQ
	.comm	_SQ_ALL_16,4,2                  ## @SQ_ALL_16
	.no_dead_strip	_set_msi_sid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_msi_sid
_set_msi_sid:                           ; @set_msi_sid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	mov	w0, #-1
	cbz	x19, LBB0_12
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_12
; %bb.2:
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _set_msi_sid_cb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _set_msi_sid_cb@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_pci_for_each_dma_alias
	ldr	w0, [sp, #16]
	bl	_PCI_BUS_NUM
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [sp, #8]
	ldr	x9, [x20]
	ldr	x1, [x9]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.4:
	ldr	w9, [sp, #12]
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x2, x1
	bl	_set_irte_verify_bus
	b	LBB0_11
LBB0_6:
	ldr	w0, [sp, #16]
	bl	_PCI_BUS_NUM
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x2, [x8]
	mov	x0, x19
	bl	_set_irte_verify_bus
	b	LBB0_11
LBB0_7:
Lloh3:
	adrp	x8, _SVT_VERIFY_SID_SQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVT_VERIFY_SID_SQ@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _SQ_ALL_16@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQ_ALL_16@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	cmp	x0, x1
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_pci_dev_id
	mov	x3, x0
	b	LBB0_10
LBB0_9:
	ldr	w3, [sp, #16]
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_set_irte_sid
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_set_msi_sid_cb,4,2             ; @set_msi_sid_cb
	.comm	_SVT_VERIFY_SID_SQ,4,2          ; @SVT_VERIFY_SID_SQ
	.comm	_SQ_ALL_16,4,2                  ; @SQ_ALL_16
	.no_dead_strip	_set_msi_sid
.subsections_via_symbols
