	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sca3000_freefall_set_state
_sca3000_freefall_set_state:            ## @sca3000_freefall_set_state
	.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
	movl	%esi, %r14d
	callq	_iio_priv
	movq	%rax, %rbx
	movq	_SCA3000_REG_MODE_ADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_sca3000_read_data_short
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	_SCA3000_REG_MODE_FREE_FALL_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	testl	%edx, %ecx
	jne	LBB0_7
## %bb.3:
	movl	(%r15), %esi
	orl	%edx, %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	jmp	LBB0_4
LBB0_5:
	testl	%edx, %ecx
	je	LBB0_6
## %bb.8:
	movl	(%r15), %esi
	notl	%ecx
	andl	%ecx, %edx
	movq	%rbx, %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sca3000_write_reg              ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SCA3000_REG_MODE_ADDR,4,2      ## @SCA3000_REG_MODE_ADDR
	.comm	_SCA3000_REG_MODE_FREE_FALL_DETECT,4,2 ## @SCA3000_REG_MODE_FREE_FALL_DETECT
	.no_dead_strip	_sca3000_freefall_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sca3000_freefall_set_state
_sca3000_freefall_set_state:            ; @sca3000_freefall_set_state
	.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
	mov	x20, x1
	bl	_iio_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _SCA3000_REG_MODE_ADDR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SCA3000_REG_MODE_ADDR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #1
	bl	_sca3000_read_data_short
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _SCA3000_REG_MODE_FREE_FALL_DETECT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SCA3000_REG_MODE_FREE_FALL_DETECT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w10, w9, w8
	cbz	w20, LBB0_4
; %bb.2:
	cbnz	w10, LBB0_7
; %bb.3:
	ldr	w1, [x21]
	orr	w2, w9, w8
	b	LBB0_6
LBB0_4:
	cbz	w10, LBB0_7
; %bb.5:
	ldr	w1, [x21]
	bic	w2, w8, w9
LBB0_6:
	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	_sca3000_write_reg
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SCA3000_REG_MODE_ADDR,4,2      ; @SCA3000_REG_MODE_ADDR
	.comm	_SCA3000_REG_MODE_FREE_FALL_DETECT,4,2 ; @SCA3000_REG_MODE_FREE_FALL_DETECT
	.no_dead_strip	_sca3000_freefall_set_state
.subsections_via_symbols
