	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_freeze_notify             ## -- Begin function sdma_freeze_notify
	.p2align	4, 0x90
_sdma_freeze_notify:                    ## @sdma_freeze_notify
	.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, %r15
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_sdma_event_e80_hw_freeze@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_sdma_event_e85_link_down@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	leaq	16(%r15), %rdi
	movl	(%r15), %esi
	callq	_atomic_set
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%r12, %rdi
	movl	%r14d, %esi
	callq	_sdma_process_event
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sdma_event_e85_link_down,4,2   ## @sdma_event_e85_link_down
	.comm	_sdma_event_e80_hw_freeze,4,2   ## @sdma_event_e80_hw_freeze
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_freeze_notify             ; -- Begin function sdma_freeze_notify
	.p2align	2
_sdma_freeze_notify:                    ; @sdma_freeze_notify
	.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, _sdma_event_e85_link_down@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sdma_event_e85_link_down@GOTPAGEOFF]
Lloh2:
	adrp	x9, _sdma_event_e80_hw_freeze@GOTPAGE
Lloh3:
	ldr	x9, [x9, _sdma_event_e80_hw_freeze@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	add	x0, x0, #16
	ldr	w1, [x19]
	bl	_atomic_set
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x21
	mov	x1, x20
	bl	_sdma_process_event
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sdma_event_e85_link_down,4,2   ; @sdma_event_e85_link_down
	.comm	_sdma_event_e80_hw_freeze,4,2   ; @sdma_event_e80_hw_freeze
.subsections_via_symbols
