	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_device_group               ## -- Begin function pci_device_group
	.p2align	4, 0x90
_pci_device_group:                      ## @pci_device_group
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_to_pci_dev
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	%rbx, %rdi
	callq	_dev_is_pci
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movq	_get_pci_alias_or_group@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_for_each_dma_alias
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rax
	jmp	LBB0_14
LBB0_5:
	movq	-64(%rbp), %r14
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_pci_is_root_bus
	testl	%eax, %eax
	je	LBB0_6
LBB0_11:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_pci_alias_group
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_pci_function_alias_group
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_iommu_group_alloc
	jmp	LBB0_14
LBB0_6:
	movq	_REQ_ACS_FLAGS@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_pci_is_root_bus
	testl	%eax, %eax
	jne	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_pci_acs_path_enabled
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_iommu_group_get
	testq	%rax, %rax
	je	LBB0_10
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_get_pci_alias_or_group,4,2     ## @get_pci_alias_or_group
	.comm	_REQ_ACS_FLAGS,4,2              ## @REQ_ACS_FLAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_device_group               ; -- Begin function pci_device_group
	.p2align	2
_pci_device_group:                      ; @pci_device_group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_to_pci_dev
	mov	x19, x0
	stp	xzr, xzr, [sp, #24]
	mov	x0, x20
	bl	_dev_is_pci
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [sp, #40]
Lloh6:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_16
; %bb.2:
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_3:
Lloh9:
	adrp	x8, _get_pci_alias_or_group@GOTPAGE
Lloh10:
	ldr	x8, [x8, _get_pci_alias_or_group@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_for_each_dma_alias
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [sp, #16]
	b	LBB0_14
LBB0_5:
	ldr	x19, [sp, #8]
	ldr	x20, [x19, #8]
	mov	x0, x20
	bl	_pci_is_root_bus
	cbz	w0, LBB0_9
LBB0_6:
	add	x1, sp, #24
	mov	x0, x19
	bl	_get_pci_alias_group
	cbnz	x0, LBB0_14
; %bb.7:
	add	x1, sp, #24
	mov	x0, x19
	bl	_get_pci_function_alias_group
	cbnz	x0, LBB0_14
; %bb.8:
	bl	_iommu_group_alloc
	b	LBB0_14
LBB0_9:
Lloh12:
	adrp	x21, _REQ_ACS_FLAGS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _REQ_ACS_FLAGS@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x20, [x20, #8]
	mov	x0, x20
	bl	_pci_is_root_bus
	cbnz	w0, LBB0_6
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x21]
	mov	x1, #0
	bl	_pci_acs_path_enabled
	cbnz	x0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x19, [x20]
	mov	x0, x19
	bl	_iommu_group_get
	cbz	x0, LBB0_10
LBB0_14:
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_get_pci_alias_or_group,4,2     ; @get_pci_alias_or_group
	.comm	_REQ_ACS_FLAGS,4,2              ; @REQ_ACS_FLAGS
.subsections_via_symbols
