	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_spi_pci_probe
_intel_spi_pci_probe:                   ## @intel_spi_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_pcim_enable_device
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	8(%r12), %r14
	movq	(%rbx), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_devm_kmemdup
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	_BCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_dword
	movl	-44(%rbp), %ecx
	movq	_BCR_WPD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%edx, %eax
	andl	%ecx, %eax
	jne	LBB0_5
## %bb.4:
	orl	%ecx, %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_pci_write_config_dword
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_dword
	movl	(%r13), %eax
	andl	-44(%rbp), %eax
LBB0_5:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, (%r15)
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_intel_spi_probe
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_PTR_ERR
	jmp	LBB0_8
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BCR,4,2                        ## @BCR
	.comm	_BCR_WPD,4,2                    ## @BCR_WPD
	.no_dead_strip	_intel_spi_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_spi_pci_probe
_intel_spi_pci_probe:                   ; @intel_spi_pci_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	bl	_pcim_enable_device
	cbz	w0, LBB0_2
LBB0_1:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	add	x20, x19, #8
	ldr	x1, [x21]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #4
	bl	_devm_kmemdup
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x22, _BCR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BCR@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w9, [sp, #12]
Lloh5:
	adrp	x23, _BCR_WPD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BCR_WPD@GOTPAGEOFF]
	ldr	w10, [x23]
	ands	w8, w10, w9
	b.ne	LBB0_5
; %bb.4:
	orr	w2, w10, w9
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_pci_write_config_dword
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	and	w8, w9, w8
LBB0_5:
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x21]
	ldr	x1, [x19]
	mov	x0, x20
	mov	x2, x21
	bl	_intel_spi_probe
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_PTR_ERR
	b	LBB0_1
LBB0_7:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BCR,4,2                        ; @BCR
	.comm	_BCR_WPD,4,2                    ; @BCR_WPD
	.no_dead_strip	_intel_spi_pci_probe
.subsections_via_symbols
