	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setfreq
_setfreq:                               ## @setfreq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	(%rdi), %eax
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_3
## %bb.1:
	movaps	l___const.setfreq.i2c+16(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	l___const.setfreq.i2c(%rip), %xmm0
	cmpl	$129, %eax
	movl	$79, %ecx
	movl	$138, %edx
	cmovel	%ecx, %edx
	movaps	%xmm0, -48(%rbp)
	xorl	%ecx, %ecx
	cmpl	$1, 4(%rdi)
	cmovel	%edx, %ecx
	movl	%ecx, -36(%rbp)
	movq	_sensor_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_i2c_w
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PDEBUG
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.setfreq.i2c
l___const.setfreq.i2c:
	.long	160                             ## 0xa0
	.long	0                               ## 0x0
	.long	43                              ## 0x2b
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	16                              ## 0x10

	.comm	_sensor_data,8,3                ## @sensor_data
	.comm	_D_ERR,4,2                      ## @D_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c error setfreq"

	.no_dead_strip	_setfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setfreq
_setfreq:                               ; @setfreq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldr	w8, [x0]
	and	w9, w8, #0xfffffffe
	cmp	w9, #128
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, l___const.setfreq.i2c@PAGE
Lloh4:
	add	x9, x9, l___const.setfreq.i2c@PAGEOFF
	ldp	q0, q1, [x9]
	stp	q0, q1, [sp]
	ldr	w9, [x0, #4]
	mov	w10, #138
	mov	w11, #79
	cmp	w8, #129
	csel	w10, w11, w10, eq
	cmp	w9, #1
	csel	w9, w10, wzr, eq
	str	w9, [sp, #12]
Lloh5:
	adrp	x9, _sensor_data@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sensor_data@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [sp, #4]
	mov	x1, sp
	bl	_i2c_w
	tbz	w0, #31, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _D_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
LBB0_3:
	ldur	x8, [x29, #-8]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.setfreq.i2c
l___const.setfreq.i2c:
	.long	160                             ; 0xa0
	.long	0                               ; 0x0
	.long	43                              ; 0x2b
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	16                              ; 0x10

	.comm	_sensor_data,8,3                ; @sensor_data
	.comm	_D_ERR,4,2                      ; @D_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c error setfreq"

	.no_dead_strip	_setfreq
.subsections_via_symbols
