	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp007_write_event_config
_tmp007_write_event_config:             ## @tmp007_write_event_config
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movq	%rsi, %rbx
	callq	_iio_priv
	movq	%rax, %r15
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.2:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_3
## %bb.4:
	movq	_TMP007_STATUS_LHF@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_6
## %bb.7:
	movq	_TMP007_STATUS_OHF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_3:
	movq	_TMP007_STATUS_LLF@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_TMP007_STATUS_OLF@GOTPCREL(%rip), %rax
LBB0_8:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
LBB0_9:
	movl	(%rax), %r12d
	movq	%r15, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	4(%r15), %edi
	movq	_TMP007_STATUS_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r13d, %r13d
	js	LBB0_12
## %bb.10:
	movl	%r13d, %eax
	orl	%r12d, %eax
	notl	%r12d
	andl	%r13d, %r12d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%eax, %r12d
	movl	4(%r15), %edi
	movl	(%r14), %esi
	movl	%r12d, (%r15)
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_word_swapped   ## TAILCALL
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_TMP007_STATUS_LHF,4,2          ## @TMP007_STATUS_LHF
	.comm	_TMP007_STATUS_LLF,4,2          ## @TMP007_STATUS_LLF
	.comm	_TMP007_STATUS_OHF,4,2          ## @TMP007_STATUS_OHF
	.comm	_TMP007_STATUS_OLF,4,2          ## @TMP007_STATUS_OLF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TMP007_STATUS_MASK,4,2         ## @TMP007_STATUS_MASK
	.no_dead_strip	_tmp007_write_event_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp007_write_event_config
_tmp007_write_event_config:             ; @tmp007_write_event_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x21, x3
	mov	x22, x1
	bl	_iio_priv
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TMP007_STATUS_LLF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TMP007_STATUS_LLF@GOTPAGEOFF]
Lloh5:
	adrp	x10, _TMP007_STATUS_LHF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TMP007_STATUS_LHF@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _TMP007_STATUS_OLF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TMP007_STATUS_OLF@GOTPAGEOFF]
Lloh12:
	adrp	x10, _TMP007_STATUS_OHF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TMP007_STATUS_OHF@GOTPAGEOFF]
LBB0_4:
	cmp	w8, w21
	csel	x8, x10, x9, eq
	ldr	w23, [x8]
	add	x22, x20, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	w0, [x20, #4]
Lloh14:
	adrp	x24, _TMP007_STATUS_MASK@GOTPAGE
Lloh15:
	ldr	x24, [x24, _TMP007_STATUS_MASK@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_word_swapped
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_7
; %bb.5:
	orr	w8, w21, w23
	bic	w9, w21, w23
	cmp	w19, #0
	csel	w2, w9, w8, eq
	ldr	w0, [x20, #4]
	ldr	w1, [x24]
	str	w2, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_i2c_smbus_write_word_swapped
LBB0_6:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_TMP007_STATUS_LHF,4,2          ; @TMP007_STATUS_LHF
	.comm	_TMP007_STATUS_LLF,4,2          ; @TMP007_STATUS_LLF
	.comm	_TMP007_STATUS_OHF,4,2          ; @TMP007_STATUS_OHF
	.comm	_TMP007_STATUS_OLF,4,2          ; @TMP007_STATUS_OLF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TMP007_STATUS_MASK,4,2         ; @TMP007_STATUS_MASK
	.no_dead_strip	_tmp007_write_event_config
.subsections_via_symbols
