	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_add_scripts
_sdma_add_scripts:                      ## @sdma_add_scripts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edx
	testl	%edx, %edx
	jne	LBB0_3
## %bb.1:
	movq	_SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rdi)
	testl	%edx, %edx
	je	LBB0_2
LBB0_3:
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1,4,2 ## @SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDMA script number %d not match with firmware.\n"

	.no_dead_strip	_sdma_add_scripts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_add_scripts
_sdma_add_scripts:                      ; @sdma_add_scripts
	.cfi_startproc
; %bb.0:
	ldr	w2, [x0]
	cbnz	w2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	str	w2, [x0]
	cbz	w2, LBB0_3
LBB0_2:
	ldr	w0, [x0, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	_dev_err
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1,4,2 ; @SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDMA script number %d not match with firmware.\n"

	.no_dead_strip	_sdma_add_scripts
.subsections_via_symbols
