	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioat_probe
_ioat_probe:                            ## @ioat_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, %rbx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	xorl	%r12d, %r12d
	movq	8(%rdi), %r15
	movq	_SMP_CACHE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	movl	%ecx, %r8d
	callq	_dma_pool_create
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_ioat_enumerate_channels
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%rbx), %esi
	callq	_dma_cap_set
	movq	%r15, 24(%rbx)
	cmpl	$0, 16(%rbx)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_ioat_dma_setup_interrupts
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_ioat3_dma_self_test
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ioat_disable_interrupts
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %r14d
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_8:
	movl	(%rbx), %edi
	callq	_dma_pool_destroy
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"completion_pool"

	.comm	_SMP_CACHE_BYTES,4,2            ## @SMP_CACHE_BYTES
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
L_.str.1:                               ## @.str.1
	.asciz	"channel enumeration error\n"

	.no_dead_strip	_ioat_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioat_probe
_ioat_probe:                            ; @ioat_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, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x20, [x0, #8]
Lloh3:
	adrp	x8, _SMP_CACHE_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMP_CACHE_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	w2, #4
	mov	x4, x3
	bl	_dma_pool_create
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_ioat_enumerate_channels
Lloh8:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_dma_cap_set
	str	x20, [x19, #24]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_ioat_dma_setup_interrupts
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_ioat3_dma_self_test
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_ioat_disable_interrupts
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_6:
	neg	w21, w21
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_7:
	ldr	w0, [x19]
	bl	_dma_pool_destroy
LBB0_8:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"completion_pool"

	.comm	_SMP_CACHE_BYTES,4,2            ; @SMP_CACHE_BYTES
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
l_.str.1:                               ; @.str.1
	.asciz	"channel enumeration error\n"

	.no_dead_strip	_ioat_probe
.subsections_via_symbols
