	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtd_pci_probe
_mtd_pci_probe:                         ## @mtd_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %r12
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_pci_request_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	_mtd_pci_map@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_pci_name
	movl	%eax, 8(%r15)
	movq	%r14, 16(%r15)
	movq	16(%r12), %rax
	movq	%rax, (%r15)
	movl	12(%r12), %eax
	movl	%eax, 12(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%r15)
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_pci_release_regions
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rsi
	addq	$8, %rsi
	movl	8(%r12), %edi
	callq	_do_map_probe
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%rax, %r12
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mtd_device_register
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pci_set_drvdata
	jmp	LBB0_9
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci mtd"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mtd_pci_map,4,2                ## @mtd_pci_map
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_mtd_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtd_pci_probe
_mtd_pci_probe:                         ; @mtd_pci_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x23, [x1]
	bl	_pci_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_request_regions
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh5:
	adrp	x8, _mtd_pci_map@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mtd_pci_map@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x22, x0
	str	w8, [x22, #8]!
	mov	x0, x19
	bl	_pci_name
	str	w0, [x22]
	str	x19, [x20, #16]
	ldr	x8, [x23, #16]
	str	x8, [x20]
	ldr	w8, [x23, #12]
	str	w8, [x20, #12]
	ldr	x8, [x23]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_4:
	ldr	x8, [x20]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x0, x20
	bl	_kfree
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x19
	bl	_pci_release_regions
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x23, #8]
	mov	x1, x22
	bl	_do_map_probe
	cbz	x0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh11:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0]
	mov	x1, #0
	mov	w2, #0
	bl	_mtd_device_register
	mov	x0, x19
	mov	x1, x21
	bl	_pci_set_drvdata
	mov	w21, #0
	b	LBB0_7
LBB0_10:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci mtd"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mtd_pci_map,4,2                ; @mtd_pci_map
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_mtd_pci_probe
.subsections_via_symbols
