	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shdma_chan_probe               ## -- Begin function shdma_chan_probe
	.p2align	4, 0x90
_shdma_chan_probe:                      ## @shdma_chan_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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_SHDMA_PM_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rsi)
	leaq	8(%rdi), %r12
	leaq	8(%rsi), %r13
	movq	%r12, 16(%rsi)
	movq	%r13, %rdi
	callq	_dma_cookie_init
	movl	12(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	%r14d, (%rbx)
	cmpq	$0, 40(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
LBB0_2:
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	movq	%rbx, (%rax,%rcx,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHDMA_PM_ESTABLISHED,4,2       ## @SHDMA_PM_ESTABLISHED
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shdma_chan_probe               ; -- Begin function shdma_chan_probe
	.p2align	2
_shdma_chan_probe:                      ; @shdma_chan_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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _SHDMA_PM_ESTABLISHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHDMA_PM_ESTABLISHED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #52]
	add	x22, x0, #8
	add	x23, x1, #8
	str	x22, [x1, #16]
	mov	x0, x23
	bl	_dma_cookie_init
	ldr	w8, [x21, #12]
	str	w8, [x20, #48]
	str	w19, [x20]
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20, #40]
LBB0_2:
	add	x0, x20, #32
	bl	_spin_lock_init
	add	x0, x20, #28
	bl	_INIT_LIST_HEAD
	add	x0, x20, #24
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	mov	x1, x22
	bl	_list_add_tail
	ldr	x8, [x21]
	str	x20, [x8, w19, sxtw #3]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SHDMA_PM_ESTABLISHED,4,2       ; @SHDMA_PM_ESTABLISHED
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
