	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_build_ahg_descriptor
_sdma_build_ahg_descriptor:             ## @sdma_build_ahg_descriptor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rcx, %rax
	movq	_SDMA_AHG_UPDATE_ENABLE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %r8d
	shlq	%cl, %r8
	movq	_SDMA_AHG_FIELD_START_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rdx
	movq	_SDMA_AHG_FIELD_START_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	movq	_SDMA_AHG_FIELD_LEN_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_SDMA_AHG_FIELD_LEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	_SDMA_AHG_INDEX_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rsi
	movq	_SDMA_AHG_INDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rsi
	orl	%edx, %r8d
	orl	%esi, %eax
	orl	%r8d, %eax
	movq	_SDMA_AHG_VALUE_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rdi
	movq	_SDMA_AHG_VALUE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdi
	orl	%edi, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA_AHG_UPDATE_ENABLE_SHIFT,8,3 ## @SDMA_AHG_UPDATE_ENABLE_SHIFT
	.comm	_SDMA_AHG_FIELD_START_MASK,8,3  ## @SDMA_AHG_FIELD_START_MASK
	.comm	_SDMA_AHG_FIELD_START_SHIFT,8,3 ## @SDMA_AHG_FIELD_START_SHIFT
	.comm	_SDMA_AHG_FIELD_LEN_MASK,8,3    ## @SDMA_AHG_FIELD_LEN_MASK
	.comm	_SDMA_AHG_FIELD_LEN_SHIFT,8,3   ## @SDMA_AHG_FIELD_LEN_SHIFT
	.comm	_SDMA_AHG_INDEX_MASK,8,3        ## @SDMA_AHG_INDEX_MASK
	.comm	_SDMA_AHG_INDEX_SHIFT,8,3       ## @SDMA_AHG_INDEX_SHIFT
	.comm	_SDMA_AHG_VALUE_MASK,8,3        ## @SDMA_AHG_VALUE_MASK
	.comm	_SDMA_AHG_VALUE_SHIFT,8,3       ## @SDMA_AHG_VALUE_SHIFT
	.no_dead_strip	_sdma_build_ahg_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_build_ahg_descriptor
_sdma_build_ahg_descriptor:             ; @sdma_build_ahg_descriptor
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SDMA_AHG_UPDATE_ENABLE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMA_AHG_UPDATE_ENABLE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #1
Lloh3:
	adrp	x10, _SDMA_AHG_FIELD_START_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SDMA_AHG_FIELD_START_MASK@GOTPAGEOFF]
	lsl	x8, x9, x8
Lloh5:
	ldr	x9, [x10]
	and	x9, x9, x2
Lloh6:
	adrp	x10, _SDMA_AHG_FIELD_START_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SDMA_AHG_FIELD_START_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _SDMA_AHG_FIELD_LEN_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDMA_AHG_FIELD_LEN_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	and	x9, x9, x3
Lloh12:
	adrp	x10, _SDMA_AHG_FIELD_LEN_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SDMA_AHG_FIELD_LEN_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	lsl	x9, x9, x10
Lloh15:
	adrp	x10, _SDMA_AHG_INDEX_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SDMA_AHG_INDEX_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh17:
	ldr	x9, [x10]
	and	x9, x9, x1
Lloh18:
	adrp	x10, _SDMA_AHG_INDEX_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SDMA_AHG_INDEX_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _SDMA_AHG_VALUE_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SDMA_AHG_VALUE_MASK@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	and	x9, x9, x0
Lloh24:
	adrp	x10, _SDMA_AHG_VALUE_SHIFT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SDMA_AHG_VALUE_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_AHG_UPDATE_ENABLE_SHIFT,8,3 ; @SDMA_AHG_UPDATE_ENABLE_SHIFT
	.comm	_SDMA_AHG_FIELD_START_MASK,8,3  ; @SDMA_AHG_FIELD_START_MASK
	.comm	_SDMA_AHG_FIELD_START_SHIFT,8,3 ; @SDMA_AHG_FIELD_START_SHIFT
	.comm	_SDMA_AHG_FIELD_LEN_MASK,8,3    ; @SDMA_AHG_FIELD_LEN_MASK
	.comm	_SDMA_AHG_FIELD_LEN_SHIFT,8,3   ; @SDMA_AHG_FIELD_LEN_SHIFT
	.comm	_SDMA_AHG_INDEX_MASK,8,3        ; @SDMA_AHG_INDEX_MASK
	.comm	_SDMA_AHG_INDEX_SHIFT,8,3       ; @SDMA_AHG_INDEX_SHIFT
	.comm	_SDMA_AHG_VALUE_MASK,8,3        ; @SDMA_AHG_VALUE_MASK
	.comm	_SDMA_AHG_VALUE_SHIFT,8,3       ; @SDMA_AHG_VALUE_SHIFT
	.no_dead_strip	_sdma_build_ahg_descriptor
.subsections_via_symbols
