	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimd_trigger
_fimd_trigger:                          ## @fimd_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %r14
	movq	16(%rax), %rax
	movslq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	addq	%r15, %r14
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	_TRIGCON@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdi
	addq	%r14, %rdi
	callq	_readl
	movq	_TRGMODE_ENABLE@GOTPCREL(%rip), %rcx
	movq	_SWTRGCMD_ENABLE@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movslq	(%r15), %rsi
	addq	%r14, %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%rbx, %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_set                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRIGCON,4,2                    ## @TRIGCON
	.comm	_TRGMODE_ENABLE,4,2             ## @TRGMODE_ENABLE
	.comm	_SWTRGCMD_ENABLE,4,2            ## @SWTRGCMD_ENABLE
	.no_dead_strip	_fimd_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimd_trigger
_fimd_trigger:                          ; @fimd_trigger
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_dev_get_drvdata
	mov	x19, x0
	ldp	x20, x8, [x0, #8]
	ldrsw	x21, [x8]
	bl	_atomic_read
	cbnz	x0, LBB0_2
; %bb.1:
	add	x20, x20, x21
	mov	x0, x19
	mov	w1, #1
	bl	_atomic_set
Lloh0:
	adrp	x21, _TRIGCON@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TRIGCON@GOTPAGEOFF]
	ldrsw	x8, [x21]
	add	x0, x20, x8
	bl	_readl
Lloh2:
	adrp	x8, _TRGMODE_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRGMODE_ENABLE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _SWTRGCMD_ENABLE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SWTRGCMD_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldrsw	x8, [x21]
	add	x1, x20, x8
	bl	_writel
	add	x1, x19, #4
	mov	w0, #0
	bl	_test_bit
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_atomic_set
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TRIGCON,4,2                    ; @TRIGCON
	.comm	_TRGMODE_ENABLE,4,2             ; @TRGMODE_ENABLE
	.comm	_SWTRGCMD_ENABLE,4,2            ; @SWTRGCMD_ENABLE
	.no_dead_strip	_fimd_trigger
.subsections_via_symbols
