	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_pci_probe
_alcor_pci_probe:                       ## @alcor_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	%rdi, %r15
	movq	(%rsi), %r12
	callq	_pcim_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %ecx
	movq	_alcor_pci_idr@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_21
## %bb.3:
	movl	%ebx, (%r14)
	movq	%r15, 40(%r14)
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	%r15, 8(%r14)
	movq	%r12, 24(%r14)
	movl	4(%r15), %eax
	movl	%eax, 20(%r14)
	movq	_DRV_NAME_ALCOR_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_20:
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_flags
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pcim_iomap
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	_AU6601_REG_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_alcor_write32
	movq	_AU6601_MS_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_alcor_write32
	movq	8(%r14), %rdi
	movq	_AU6601_SDMA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_set_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_pci_release_regions
	jmp	LBB0_21
LBB0_13:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	movq	%r14, %rdi
	callq	_alcor_pci_init_check_aspm
	movq	_alcor_pci_cells@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	%r14, 8(%rax,%rbx)
	movq	(%r13), %rdi
	movl	$48, (%rdi,%rbx)
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_15
LBB0_16:
	movl	(%r14), %r12d
	movq	(%r13), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_alcor_pci_aspm_ctrl
	jmp	LBB0_21
LBB0_18:
	movl	%eax, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_alcor_pci_idr,4,2              ## @alcor_pci_idr
	.comm	_DRV_NAME_ALCOR_PCI,4,2         ## @DRV_NAME_ALCOR_PCI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot request region\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"BAR %d is not iomem. Aborting.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AU6601_REG_INT_ENABLE,4,2      ## @AU6601_REG_INT_ENABLE
	.comm	_AU6601_MS_INT_ENABLE,4,2       ## @AU6601_MS_INT_ENABLE
	.comm	_AU6601_SDMA_MASK,4,2           ## @AU6601_SDMA_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set DMA mask\n"

	.comm	_alcor_pci_cells,8,3            ## @alcor_pci_cells
	.no_dead_strip	_alcor_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_pci_probe
_alcor_pci_probe:                       ; @alcor_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	x19, x0
	ldr	x22, [x1]
	bl	_pcim_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w3, [x21]
Lloh2:
	adrp	x0, _alcor_pci_idr@GOTPAGE
Lloh3:
	ldr	x0, [x0, _alcor_pci_idr@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	str	w21, [x20]
	str	x19, [x20, #40]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x20, #32]
	str	x19, [x20, #8]
	str	x22, [x20, #24]
	ldr	w8, [x19, #4]
	str	w8, [x20, #20]
Lloh4:
	adrp	x8, _DRV_NAME_ALCOR_PCI@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRV_NAME_ALCOR_PCI@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_7
; %bb.4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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_7:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_flags
Lloh12:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_pcim_iomap
	str	w0, [x20, #16]
	cbz	w0, LBB0_12
; %bb.9:
Lloh15:
	adrp	x8, _AU6601_REG_INT_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AU6601_REG_INT_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write32
Lloh18:
	adrp	x8, _AU6601_MS_INT_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AU6601_MS_INT_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write32
	ldr	x0, [x20, #8]
Lloh21:
	adrp	x8, _AU6601_SDMA_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AU6601_SDMA_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_dma_set_mask_and_coherent
	cbz	w0, LBB0_15
; %bb.10:
	mov	x21, x0
	ldr	x0, [x20, #8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_11:
	str	xzr, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x19
	bl	_pci_release_regions
	b	LBB0_6
LBB0_15:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_alcor_pci_init_check_aspm
Lloh32:
	adrp	x22, _alcor_pci_cells@GOTPAGE
Lloh33:
	ldr	x22, [x22, _alcor_pci_cells@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x21, #0
	mov	x23, #0
	mov	w24, #48
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x21
	str	x20, [x8, #8]
	ldr	x0, [x22]
	str	w24, [x0, x21]
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #16
	cmp	x23, w0, sxtw
	b.lt	LBB0_17
LBB0_18:
	ldr	w21, [x20]
	ldr	x22, [x22]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_20
; %bb.19:
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_pci_aspm_ctrl
	mov	w21, #0
	b	LBB0_6
LBB0_20:
	mov	x21, x0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_alcor_pci_idr,4,2              ; @alcor_pci_idr
	.comm	_DRV_NAME_ALCOR_PCI,4,2         ; @DRV_NAME_ALCOR_PCI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot request region\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"BAR %d is not iomem. Aborting.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AU6601_REG_INT_ENABLE,4,2      ; @AU6601_REG_INT_ENABLE
	.comm	_AU6601_MS_INT_ENABLE,4,2       ; @AU6601_MS_INT_ENABLE
	.comm	_AU6601_SDMA_MASK,4,2           ; @AU6601_SDMA_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set DMA mask\n"

	.comm	_alcor_pci_cells,8,3            ; @alcor_pci_cells
	.no_dead_strip	_alcor_pci_probe
.subsections_via_symbols
