	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_dev_str_match_path
_pci_dev_str_match_path:                ## @pci_dev_str_match_path
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	movl	$59, %esi
	callq	_strchrnul
	movq	%rax, (%r14)
	subl	%ebx, %eax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_kmemdup_nul
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-41(%rbp), %r8
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %r12
	movl	-52(%rbp), %edi
	movl	-48(%rbp), %esi
	callq	_PCI_DEVFN
	cmpq	%rax, %r12
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_pci_upstream_bridge
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movb	$0, (%rbx)
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_8:
	leaq	-41(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$4, %eax
	je	LBB0_11
## %bb.9:
	movl	$0, -60(%rbp)
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-41(%rbp), %r9
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_10
LBB0_11:
	movl	-60(%rbp), %ebx
	movq	8(%r13), %rdi
	callq	_pci_domain_nr
	cmpl	%eax, %ebx
	jne	LBB0_14
## %bb.12:
	movl	-56(%rbp), %eax
	movq	8(%r13), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:
	movq	(%r13), %rbx
	movl	-52(%rbp), %edi
	movl	-48(%rbp), %esi
	callq	_PCI_DEVFN
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	sete	%r15b
	jmp	LBB0_14
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r15d
LBB0_14:
	movq	%r14, %rdi
	callq	_kfree
LBB0_15:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/%x.%x%c"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%x:%x:%x.%x%c"

L_.str.2:                               ## @.str.2
	.asciz	"%x:%x.%x%c"

	.no_dead_strip	_pci_dev_str_match_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_dev_str_match_path
_pci_dev_str_match_path:                ; @pci_dev_str_match_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #59
	bl	_strchrnul
	str	x0, [x19]
	sub	w1, w0, w21
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_kmemdup_nul
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	add	x23, sp, #31
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x23, [sp]
	add	x2, sp, #36
	add	x3, sp, #32
	mov	x0, x22
	mov	x1, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [x20]
	ldp	w1, w0, [sp, #32]
	bl	_PCI_DEVFN
	cmp	x24, x0
	b.ne	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_pci_upstream_bridge
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x22]
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	mov	x22, x0
	cbnz	x0, LBB0_3
LBB0_7:
	add	x21, sp, #31
	add	x22, sp, #32
	add	x8, sp, #36
	stp	x22, x21, [sp, #8]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #44
	add	x3, sp, #40
	mov	x0, x19
	bl	_sscanf
	cmp	w0, #4
	b.eq	LBB0_9
; %bb.8:
	str	wzr, [sp, #44]
	stp	x22, x21, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #40
	add	x3, sp, #36
	mov	x0, x19
	bl	_sscanf
	cmp	w0, #3
	b.ne	LBB0_14
LBB0_9:
	ldr	w21, [sp, #44]
	ldr	x0, [x20, #8]
	bl	_pci_domain_nr
	cmp	w21, w0
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [sp, #40]
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.11:
	ldr	x20, [x20]
	ldp	w1, w0, [sp, #32]
	bl	_PCI_DEVFN
	cmp	x20, x0
	cset	w20, eq
	b	LBB0_15
LBB0_12:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_13:
	mov	w20, #0
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	mov	x0, x19
	bl	_kfree
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/%x.%x%c"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%x:%x:%x.%x%c"

l_.str.2:                               ; @.str.2
	.asciz	"%x:%x.%x%c"

	.no_dead_strip	_pci_dev_str_match_path
.subsections_via_symbols
