	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decon_setup_trigger
_decon_setup_trigger:                   ## @decon_setup_trigger
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	24(%rdi), %rcx
	movq	_I80_HW_TRG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	jne	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	_TRIGCON_TRIGEN_PER_F@GOTPCREL(%rip), %rcx
	movq	_TRIGCON_TRIGEN_F@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_TRIGCON_HWTRIGMASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_TRIGCON_HWTRIGEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_DECON_TRIGCON@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movl	8(%rbx), %edi
	movq	_DSD_CFG_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSD_CFG_MUX_TE_UNMASK_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %ecx
	callq	_regmap_update_bits
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_DEV_ERROR                  ## TAILCALL
LBB0_4:
	movq	_TRIGCON_TE_AUTO_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_TRIGCON_SWTRIGEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_DECON_TRIGCON@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I80_HW_TRG,4,2                 ## @I80_HW_TRG
	.comm	_TRIGCON_TRIGEN_PER_F,4,2       ## @TRIGCON_TRIGEN_PER_F
	.comm	_TRIGCON_TRIGEN_F,4,2           ## @TRIGCON_TRIGEN_F
	.comm	_TRIGCON_TE_AUTO_MASK,4,2       ## @TRIGCON_TE_AUTO_MASK
	.comm	_TRIGCON_SWTRIGEN,4,2           ## @TRIGCON_SWTRIGEN
	.comm	_DECON_TRIGCON,8,3              ## @DECON_TRIGCON
	.comm	_TRIGCON_HWTRIGMASK,4,2         ## @TRIGCON_HWTRIGMASK
	.comm	_TRIGCON_HWTRIGEN,4,2           ## @TRIGCON_HWTRIGEN
	.comm	_DSD_CFG_MUX,4,2                ## @DSD_CFG_MUX
	.comm	_DSD_CFG_MUX_TE_UNMASK_GLOBAL,4,2 ## @DSD_CFG_MUX_TE_UNMASK_GLOBAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot update sysreg.\n"

	.no_dead_strip	_decon_setup_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decon_setup_trigger
_decon_setup_trigger:                   ; @decon_setup_trigger
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	ldr	w9, [x8]
	ldr	w8, [x0]
Lloh0:
	adrp	x10, _I80_HW_TRG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I80_HW_TRG@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w8, w10, w8
	orr	w9, w9, w8
	cbnz	w9, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x9, _TRIGCON_TRIGEN_PER_F@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TRIGCON_TRIGEN_PER_F@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _TRIGCON_TRIGEN_F@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TRIGCON_TRIGEN_F@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cbz	w8, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _TRIGCON_HWTRIGMASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRIGCON_HWTRIGMASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _TRIGCON_HWTRIGEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TRIGCON_HWTRIGEN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _DECON_TRIGCON@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DECON_TRIGCON@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x8, _DSD_CFG_MUX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DSD_CFG_MUX@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _DSD_CFG_MUX_TE_UNMASK_GLOBAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DSD_CFG_MUX_TE_UNMASK_GLOBAL@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	w3, #-1
	bl	_regmap_update_bits
	cbz	x0, LBB0_1
; %bb.4:
	ldr	w0, [x19, #4]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEV_ERROR
LBB0_5:
Lloh26:
	adrp	x8, _TRIGCON_TE_AUTO_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TRIGCON_TE_AUTO_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _TRIGCON_SWTRIGEN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TRIGCON_SWTRIGEN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #16]
Lloh32:
	adrp	x9, _DECON_TRIGCON@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DECON_TRIGCON@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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 AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_I80_HW_TRG,4,2                 ; @I80_HW_TRG
	.comm	_TRIGCON_TRIGEN_PER_F,4,2       ; @TRIGCON_TRIGEN_PER_F
	.comm	_TRIGCON_TRIGEN_F,4,2           ; @TRIGCON_TRIGEN_F
	.comm	_TRIGCON_TE_AUTO_MASK,4,2       ; @TRIGCON_TE_AUTO_MASK
	.comm	_TRIGCON_SWTRIGEN,4,2           ; @TRIGCON_SWTRIGEN
	.comm	_DECON_TRIGCON,8,3              ; @DECON_TRIGCON
	.comm	_TRIGCON_HWTRIGMASK,4,2         ; @TRIGCON_HWTRIGMASK
	.comm	_TRIGCON_HWTRIGEN,4,2           ; @TRIGCON_HWTRIGEN
	.comm	_DSD_CFG_MUX,4,2                ; @DSD_CFG_MUX
	.comm	_DSD_CFG_MUX_TE_UNMASK_GLOBAL,4,2 ; @DSD_CFG_MUX_TE_UNMASK_GLOBAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot update sysreg.\n"

	.no_dead_strip	_decon_setup_trigger
.subsections_via_symbols
