	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ams_i2c_clear_irq
_ams_i2c_clear_irq:                     ## @ams_i2c_clear_irq
	.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
	movl	%edi, %ebx
	movq	_AMS_IRQ_FREEFALL@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_AMS_FREEFALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ams_i2c_write
LBB0_2:
	movq	_AMS_IRQ_SHOCK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_AMS_SHOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ams_i2c_write                  ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMS_IRQ_FREEFALL,4,2           ## @AMS_IRQ_FREEFALL
	.comm	_AMS_FREEFALL,4,2               ## @AMS_FREEFALL
	.comm	_AMS_IRQ_SHOCK,4,2              ## @AMS_IRQ_SHOCK
	.comm	_AMS_SHOCK,4,2                  ## @AMS_SHOCK
	.no_dead_strip	_ams_i2c_clear_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ams_i2c_clear_irq
_ams_i2c_clear_irq:                     ; @ams_i2c_clear_irq
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _AMS_IRQ_FREEFALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMS_IRQ_FREEFALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AMS_FREEFALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMS_FREEFALL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_ams_i2c_write
LBB0_2:
Lloh6:
	adrp	x8, _AMS_IRQ_SHOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AMS_IRQ_SHOCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _AMS_SHOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AMS_SHOCK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ams_i2c_write
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AMS_IRQ_FREEFALL,4,2           ; @AMS_IRQ_FREEFALL
	.comm	_AMS_FREEFALL,4,2               ; @AMS_FREEFALL
	.comm	_AMS_IRQ_SHOCK,4,2              ; @AMS_IRQ_SHOCK
	.comm	_AMS_SHOCK,4,2                  ; @AMS_SHOCK
	.no_dead_strip	_ams_i2c_clear_irq
.subsections_via_symbols
