	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_ir_suspend_timer
_img_ir_suspend_timer:                  ## @img_ir_suspend_timer
	.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
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	_IMG_IR_IRQ_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	4(%rbx), %r15d
	movq	_IMG_IR_IRQ_ENABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_img_ir_read
	cmpl	%eax, %r15d
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_img_ir_write
LBB0_2:
	movq	_IMG_IR_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_img_ir_write
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hw,4,2                         ## @hw
	.comm	_IMG_IR_IRQ_EDGE,4,2            ## @IMG_IR_IRQ_EDGE
	.comm	_IMG_IR_IRQ_ENABLE,4,2          ## @IMG_IR_IRQ_ENABLE
	.comm	_IMG_IR_CONTROL,4,2             ## @IMG_IR_CONTROL
	.comm	_priv,8,3                       ## @priv
	.no_dead_strip	_img_ir_suspend_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_ir_suspend_timer
_img_ir_suspend_timer:                  ; @img_ir_suspend_timer
	.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
Lloh0:
	adrp	x8, _hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	bl	_spin_lock_irq
Lloh3:
	adrp	x8, _IMG_IR_IRQ_EDGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMG_IR_IRQ_EDGE@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh5:
	ldr	w8, [x8]
	and	w21, w8, w9
Lloh6:
	adrp	x20, _IMG_IR_IRQ_ENABLE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _IMG_IR_IRQ_ENABLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_img_ir_read
	cmp	w21, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x20]
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_img_ir_write
LBB0_2:
Lloh8:
	adrp	x8, _IMG_IR_CONTROL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IMG_IR_CONTROL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_img_ir_write
	mov	x0, x19
	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	_spin_unlock_irq
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hw,4,2                         ; @hw
	.comm	_IMG_IR_IRQ_EDGE,4,2            ; @IMG_IR_IRQ_EDGE
	.comm	_IMG_IR_IRQ_ENABLE,4,2          ; @IMG_IR_IRQ_ENABLE
	.comm	_IMG_IR_CONTROL,4,2             ; @IMG_IR_CONTROL
	.comm	_priv,8,3                       ; @priv
	.no_dead_strip	_img_ir_suspend_timer
.subsections_via_symbols
