	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_pctl_dt_setup_retime_packed
_st_pctl_dt_setup_retime_packed:        ## @st_pctl_dt_setup_retime_packed
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	16(%rdi), %r15
	movq	(%rdi), %rax
	movq	_RT_P_CFGS_PER_BANK@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r13d
	movq	8(%rdi), %r14
	addl	(%rax), %r13d
	leal	(,%r13,4), %r12d
	movl	%r12d, %edi
	callq	_RT_P_CFG0_CLK1NOTCLK0_FIELD
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_RT_P_CFG0_DELAY_0_FIELD
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_RT_P_CFG0_DELAY_1_FIELD
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leal	4(,%r13,4), %ebx
	movl	%ebx, %edi
	callq	_RT_P_CFG1_INVERTCLK_FIELD
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_RT_P_CFG1_RETIME_FIELD
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_RT_P_CFG1_CLKNOTDATA_FIELD
	movl	%eax, %r13d
	movl	%ebx, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	_RT_P_CFG1_DOUBLE_EDGE_FIELD
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_devm_regmap_field_alloc
	movq	%rax, 48(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_devm_regmap_field_alloc
	movq	%rax, 40(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_devm_regmap_field_alloc
	movq	%rax, 32(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_devm_regmap_field_alloc
	movq	%rax, 24(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_devm_regmap_field_alloc
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_devm_regmap_field_alloc
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_devm_regmap_field_alloc
	movq	%rax, (%rbx)
	movq	48(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	40(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	32(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	24(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	16(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_P_CFGS_PER_BANK,4,2         ## @RT_P_CFGS_PER_BANK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_st_pctl_dt_setup_retime_packed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_pctl_dt_setup_retime_packed
_st_pctl_dt_setup_retime_packed:        ; @st_pctl_dt_setup_retime_packed
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	ldp	x21, x20, [x0, #8]
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _RT_P_CFGS_PER_BANK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RT_P_CFGS_PER_BANK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	madd	w8, w9, w1, w8
	lsl	w22, w8, #2
	mov	x0, x22
	bl	_RT_P_CFG0_CLK1NOTCLK0_FIELD
	mov	x23, x0
	mov	x0, x22
	bl	_RT_P_CFG0_DELAY_0_FIELD
	mov	x24, x0
	mov	x0, x22
	bl	_RT_P_CFG0_DELAY_1_FIELD
	mov	x25, x0
	add	w22, w22, #4
	mov	x0, x22
	bl	_RT_P_CFG1_INVERTCLK_FIELD
	mov	x26, x0
	mov	x0, x22
	bl	_RT_P_CFG1_RETIME_FIELD
	mov	x27, x0
	mov	x0, x22
	bl	_RT_P_CFG1_CLKNOTDATA_FIELD
	mov	x28, x0
	mov	x0, x22
	bl	_RT_P_CFG1_DOUBLE_EDGE_FIELD
	mov	x22, x0
	mov	w2, w23
	mov	x0, x20
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	str	x0, [x19, #48]
	mov	w2, w24
	mov	x0, x20
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	str	x0, [x19, #40]
	mov	w2, w25
	mov	x0, x20
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	str	x0, [x19, #32]
	mov	w2, w26
	mov	x0, x20
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	str	x0, [x19, #24]
	mov	w2, w27
	mov	x0, x20
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	str	x0, [x19, #16]
	mov	w2, w28
	mov	x0, x20
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	str	x0, [x19, #8]
	mov	w2, w22
	mov	x0, x20
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	str	x0, [x19]
	ldr	x0, [x19, #48]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x0, [x19, #40]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	x0, [x19, #32]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #24]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.4:
	ldr	x0, [x19, #16]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_P_CFGS_PER_BANK,4,2         ; @RT_P_CFGS_PER_BANK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_st_pctl_dt_setup_retime_packed
.subsections_via_symbols
