	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcb_pci_probe
_mcb_pci_probe:                         ## @mcb_pci_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_5:
	movq	%r15, %rdi
	callq	_pci_set_master
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, 12(%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	_CHAM_HEADER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_devm_request_mem_region
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	12(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_devm_ioremap
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_flags
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_17
## %bb.9:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	movq	%r15, %rdi
	callq	_mcb_alloc_bus
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_19:
	movq	_mcb_pci_get_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rdi
	movl	%eax, (%rdi)
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	callq	_chameleon_parse_cells
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_21
## %bb.20:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
	movq	(%r14), %rdi
	callq	_mcb_bus_add_devices
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_21:
	movq	(%r14), %rdi
	callq	_mcb_release_bus
	jmp	LBB0_15
	.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	"Failed to enable PCI device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"No PCI resource\n"

	.comm	_CHAM_HEADER_SIZE,4,2           ## @CHAM_HEADER_SIZE
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
L_.str.2:                               ## @.str.2
	.asciz	"Failed to request PCI memory\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.3:                               ## @.str.3
	.asciz	"Cannot ioremap\n"

	.comm	_IORESOURCE_IO,8,3              ## @IORESOURCE_IO
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.4:                               ## @.str.4
	.asciz	"IO mapped PCI devices are not supported\n"

	.comm	_mcb_pci_get_irq,4,2            ## @mcb_pci_get_irq
L_.str.5:                               ## @.str.5
	.asciz	"Found %d cells\n"

	.no_dead_strip	_mcb_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcb_pci_probe
_mcb_pci_probe:                         ; @mcb_pci_probe
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_pci_enable_device
	cbz	w0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_5:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_start
	str	w0, [x20, #12]
	cbz	w0, LBB0_10
; %bb.6:
	mov	x1, x0
Lloh9:
	adrp	x21, _CHAM_HEADER_SIZE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _CHAM_HEADER_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh11:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_devm_request_mem_region
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w1, [x20, #12]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_devm_ioremap
	str	w0, [x20, #8]
	cbz	w0, LBB0_12
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_flags
Lloh14:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_16
; %bb.9:
Lloh17:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_10:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh28:
	adrp	x8, _EBUSY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_15:
	mov	x0, x21
	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
	ret
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	x0, x19
	bl	_mcb_alloc_bus
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x0, [x20]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_14
LBB0_18:
Lloh34:
	adrp	x8, _mcb_pci_get_irq@GOTPAGE
Lloh35:
	ldr	x8, [x8, _mcb_pci_get_irq@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	x0, [x20]
	str	w8, [x0]
	ldp	w2, w1, [x20, #8]
	bl	_chameleon_parse_cells
	mov	x21, x0
	tbnz	w0, #31, LBB0_20
; %bb.19:
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	ldr	x0, [x20]
	bl	_mcb_bus_add_devices
	mov	w21, #0
	b	LBB0_15
LBB0_20:
	ldr	x0, [x20]
	bl	_mcb_release_bus
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.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	"Failed to enable PCI device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"No PCI resource\n"

	.comm	_CHAM_HEADER_SIZE,4,2           ; @CHAM_HEADER_SIZE
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
l_.str.2:                               ; @.str.2
	.asciz	"Failed to request PCI memory\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.3:                               ; @.str.3
	.asciz	"Cannot ioremap\n"

	.comm	_IORESOURCE_IO,8,3              ; @IORESOURCE_IO
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.4:                               ; @.str.4
	.asciz	"IO mapped PCI devices are not supported\n"

	.comm	_mcb_pci_get_irq,4,2            ; @mcb_pci_get_irq
l_.str.5:                               ; @.str.5
	.asciz	"Found %d cells\n"

	.no_dead_strip	_mcb_pci_probe
.subsections_via_symbols
