	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_probe
_mic_probe:                             ## @mic_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_MIC_MAX_NUM_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	_g_mic_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_ida_simple_get
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mic_device_init
	movq	%r14, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_29
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_31
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_30
LBB0_6:
	movq	%r14, %rdi
	callq	_pci_set_master
	movq	_mic_driver_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_28
LBB0_8:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_27
LBB0_10:
	movq	80(%r15), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_resource_start
	movq	%rax, 24(%r15)
	movq	80(%r15), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_resource_len
	movq	%rax, 16(%r15)
	movq	80(%r15), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_ioremap_bar
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	80(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_resource_start
	movq	%rax, 48(%r15)
	movq	80(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_resource_len
	movq	%rax, 40(%r15)
	movq	48(%r15), %rdi
	movq	%rax, %rsi
	callq	_ioremap_wc
	movl	%eax, 32(%r15)
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	72(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mic_setup_interrupts
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_25
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_26
LBB0_16:
	movq	%r15, %rdi
	callq	_mic_smpt_init
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	%r15, %rdi
	callq	_mic_dp_init
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_20:
	movq	%r15, %rdi
	callq	_mic_bootparam_init
	movq	%r15, %rdi
	callq	_mic_create_debug_dir
	movq	64(%r15), %rdi
	movq	_cosm_hw_ops@GOTPCREL(%rip), %rsi
	callq	_cosm_register_device
	movl	%eax, 56(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movl	56(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_mic_delete_debug_dir
	movq	%r15, %rdi
	callq	_mic_dp_uninit
LBB0_23:
	movq	%r15, %rdi
	callq	_mic_smpt_uninit
LBB0_24:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mic_free_interrupts
LBB0_25:
	movl	32(%r15), %edi
	callq	_iounmap
LBB0_26:
	movl	8(%r15), %edi
	callq	_iounmap
LBB0_27:
	movq	%r14, %rdi
	callq	_pci_release_regions
LBB0_28:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_29:
	movl	(%r15), %esi
	movq	_g_mic_ida@GOTPCREL(%rip), %rdi
	callq	_ida_simple_remove
LBB0_30:
	movq	%r15, %rdi
	callq	_kfree
LBB0_31:
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_32:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_32
	.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	"mdev kmalloc failed rc %d\n"

	.comm	_g_mic_ida,4,2                  ## @g_mic_ida
	.comm	_MIC_MAX_NUM_DEVS,4,2           ## @MIC_MAX_NUM_DEVS
L_.str.1:                               ## @.str.1
	.asciz	"ida_simple_get failed rc %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable pci device.\n"

	.comm	_mic_driver_name,4,2            ## @mic_driver_name
L_.str.3:                               ## @.str.3
	.asciz	"failed to get pci regions.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot set DMA mask\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot remap MMIO BAR\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.6:                               ## @.str.6
	.asciz	"Cannot remap Aperture BAR\n"

L_.str.7:                               ## @.str.7
	.asciz	"mic_setup_interrupts failed %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"smpt_init failed %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"mic_dp_init failed rc %d\n"

	.comm	_cosm_hw_ops,4,2                ## @cosm_hw_ops
L_.str.10:                              ## @.str.10
	.asciz	"cosm_add_device failed rc %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"Probe failed rc %d\n"

	.no_dead_strip	_mic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_probe
_mic_probe:                             ; @mic_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _MIC_MAX_NUM_DEVS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIC_MAX_NUM_DEVS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w3, [x21]
Lloh5:
	adrp	x0, _g_mic_ida@GOTPAGE
Lloh6:
	ldr	x0, [x0, _g_mic_ida@GOTPAGEOFF]
	mov	w1, #0
	bl	_ida_simple_get
	str	w0, [x20]
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_mic_device_init
	mov	x0, x19
	bl	_pci_enable_device
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_28
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_30
LBB0_5:
	mov	x21, x0
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_29
LBB0_6:
	mov	x0, x19
	bl	_pci_set_master
Lloh16:
	adrp	x8, _mic_driver_name@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mic_driver_name@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_27
LBB0_8:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_26
LBB0_10:
	ldr	x8, [x20, #80]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_pci_resource_start
	str	x0, [x20, #24]
	ldr	x8, [x20, #80]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_pci_resource_len
	str	x0, [x20, #16]
	ldr	x8, [x20, #80]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_pci_ioremap_bar
	str	w0, [x20, #8]
	cbz	w0, LBB0_14
; %bb.11:
	ldr	x8, [x20, #80]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_resource_start
	str	x0, [x20, #48]
	ldr	x8, [x20, #80]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_resource_len
	mov	x1, x0
	str	x0, [x20, #40]
	ldr	x0, [x20, #48]
	bl	_ioremap_wc
	str	w0, [x20, #32]
	cbz	w0, LBB0_15
; %bb.12:
	ldr	x8, [x20, #72]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	mov	x1, x19
	bl	_mic_setup_interrupts
	cbz	w0, LBB0_16
; %bb.13:
	mov	x21, x0
	str	x21, [sp]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_24
LBB0_14:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh27:
	adrp	x8, _EIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_26
LBB0_15:
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh32:
	adrp	x8, _EIO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_25
LBB0_16:
	mov	x0, x20
	bl	_mic_smpt_init
	cbz	w0, LBB0_18
; %bb.17:
	mov	x21, x0
	str	x21, [sp]
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_23
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_mic_dp_init
	cbz	w0, LBB0_20
; %bb.19:
	mov	x21, x0
	str	x21, [sp]
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_22
LBB0_20:
	mov	x0, x20
	bl	_mic_bootparam_init
	mov	x0, x20
	bl	_mic_create_debug_dir
	ldr	x0, [x20, #64]
Lloh39:
	adrp	x1, _cosm_hw_ops@GOTPAGE
Lloh40:
	ldr	x1, [x1, _cosm_hw_ops@GOTPAGEOFF]
	bl	_cosm_register_device
	str	w0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_32
; %bb.21:
	ldr	w0, [x20, #56]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh41:
	adrp	x1, l_.str.10@PAGE
Lloh42:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_mic_delete_debug_dir
	mov	x0, x20
	bl	_mic_dp_uninit
LBB0_22:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	mov	x0, x20
	bl	_mic_smpt_uninit
LBB0_23:
	mov	x0, x20
	mov	x1, x19
	bl	_mic_free_interrupts
LBB0_24:
	ldr	w0, [x20, #32]
	bl	_iounmap
LBB0_25:
	ldr	w0, [x20, #8]
	bl	_iounmap
LBB0_26:
	mov	x0, x19
	bl	_pci_release_regions
LBB0_27:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_28:
	ldr	w1, [x20]
Lloh43:
	adrp	x0, _g_mic_ida@GOTPAGE
Lloh44:
	ldr	x0, [x0, _g_mic_ida@GOTPAGEOFF]
	bl	_ida_simple_remove
LBB0_29:
	mov	x0, x20
	bl	_kfree
LBB0_30:
	str	x21, [sp]
Lloh45:
	adrp	x1, l_.str.11@PAGE
Lloh46:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_31:
	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
	add	sp, sp, #64
	ret
LBB0_32:
	mov	w21, #0
	b	LBB0_31
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.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	"mdev kmalloc failed rc %d\n"

	.comm	_g_mic_ida,4,2                  ; @g_mic_ida
	.comm	_MIC_MAX_NUM_DEVS,4,2           ; @MIC_MAX_NUM_DEVS
l_.str.1:                               ; @.str.1
	.asciz	"ida_simple_get failed rc %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable pci device.\n"

	.comm	_mic_driver_name,4,2            ; @mic_driver_name
l_.str.3:                               ; @.str.3
	.asciz	"failed to get pci regions.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot set DMA mask\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot remap MMIO BAR\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.6:                               ; @.str.6
	.asciz	"Cannot remap Aperture BAR\n"

l_.str.7:                               ; @.str.7
	.asciz	"mic_setup_interrupts failed %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"smpt_init failed %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"mic_dp_init failed rc %d\n"

	.comm	_cosm_hw_ops,4,2                ; @cosm_hw_ops
l_.str.10:                              ; @.str.10
	.asciz	"cosm_add_device failed rc %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"Probe failed rc %d\n"

	.no_dead_strip	_mic_probe
.subsections_via_symbols
