	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setgain
_setgain:                               ## @setgain
	.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)
	movq	(%rdi), %rax
	movq	_SENSOR_PO2030N@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movaps	l___const.setgain.rgain+16(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	l___const.setgain.rgain(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_i2c_w8
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_PO2030N,8,3             ## @SENSOR_PO2030N
	.section	__TEXT,__const
	.p2align	4                               ## @__const.setgain.rgain
l___const.setgain.rgain:
	.long	161                             ## 0xa1
	.long	110                             ## 0x6e
	.long	21                              ## 0x15
	.long	0                               ## 0x0
	.long	64                              ## 0x40
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	21                              ## 0x15

	.no_dead_strip	_setgain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setgain
_setgain:                               ; @setgain
	.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	x8, [x0]
Lloh3:
	adrp	x9, _SENSOR_PO2030N@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SENSOR_PO2030N@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, l___const.setgain.rgain@PAGE
Lloh7:
	add	x9, x9, l___const.setgain.rgain@PAGEOFF
	ldp	q0, q1, [x9]
	stp	q0, q1, [sp]
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x1, sp
	bl	_i2c_w8
LBB0_2:
	ldur	x8, [x29, #-8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_PO2030N,8,3             ; @SENSOR_PO2030N
	.section	__TEXT,__const
	.p2align	2                               ; @__const.setgain.rgain
l___const.setgain.rgain:
	.long	161                             ; 0xa1
	.long	110                             ; 0x6e
	.long	21                              ; 0x15
	.long	0                               ; 0x0
	.long	64                              ; 0x40
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	21                              ; 0x15

	.no_dead_strip	_setgain
.subsections_via_symbols
