	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_dc_setup_map
_ipu_dc_setup_map:                      ## @ipu_dc_setup_map
	.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	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	leal	(%r15,%r15,2), %r13d
	addl	%edx, %r13d
	movl	%r13d, %edi
	callq	_DC_MAP_CONF_VAL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IPU_READ4
	movl	%r13d, %ecx
	shll	$4, %ecx
	movl	$65535, %edx                    ## imm = 0xFFFF
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	shll	$8, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%edx, %ebx
	movl	%r13d, %edi
	callq	_DC_MAP_CONF_VAL
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_IPU_WRITE4
	movl	%r15d, %edi
	callq	_DC_MAP_CONF_PTR
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IPU_READ4
	leal	(%r12,%r12,4), %edx
	leal	16(%rdx), %ecx
	testb	$1, %r15b
	movq	_MAP_CONF_PTR_MASK@GOTPCREL(%rip), %rsi
	movzbl	%cl, %ecx
	cmovel	%edx, %ecx
	movl	(%rsi), %edx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	orl	%edx, %r13d
	movl	%r15d, %edi
	callq	_DC_MAP_CONF_PTR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IPU_WRITE4                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_CONF_PTR_MASK,4,2          ## @MAP_CONF_PTR_MASK
	.no_dead_strip	_ipu_dc_setup_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_dc_setup_map
_ipu_dc_setup_map:                      ; @ipu_dc_setup_map
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	add	w8, w1, w1, lsl #1
	add	w24, w8, w2
	mov	x0, x24
	bl	_DC_MAP_CONF_VAL
	mov	x1, x0
	mov	x0, x23
	bl	_IPU_READ4
	ubfiz	w8, w24, #4, #1
	mov	w9, #65535
	lsl	w9, w9, w8
	bic	w9, w0, w9
	orr	w10, w19, w20, lsl #8
	lsl	w8, w10, w8
	orr	w19, w9, w8
	mov	x0, x24
	bl	_DC_MAP_CONF_VAL
	mov	x1, x0
	mov	x0, x23
	mov	x2, x19
	bl	_IPU_WRITE4
	mov	x0, x22
	bl	_DC_MAP_CONF_PTR
	mov	x1, x0
	mov	x0, x23
	bl	_IPU_READ4
	add	w8, w21, w21, lsl #2
	add	w9, w8, #16
	tst	w22, #0x1
Lloh0:
	adrp	x10, _MAP_CONF_PTR_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAP_CONF_PTR_MASK@GOTPAGEOFF]
	csel	w8, w8, w9, eq
Lloh2:
	ldr	w9, [x10]
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	w8, w24, w8
	orr	w19, w9, w8
	mov	x0, x22
	bl	_DC_MAP_CONF_PTR
	mov	x1, x0
	mov	x0, x23
	mov	x2, x19
	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
	b	_IPU_WRITE4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_CONF_PTR_MASK,4,2          ; @MAP_CONF_PTR_MASK
	.no_dead_strip	_ipu_dc_setup_map
.subsections_via_symbols
