	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max30102_get_temp
_max30102_get_temp:                     ## @max30102_get_temp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_max30102_set_power
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_2:
	movl	(%r12), %edi
	movq	_MAX30102_REG_TEMP_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX30102_REG_TEMP_CONFIG_TEMP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_max30102_set_power
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$35, %edi
	callq	_msleep
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_max30102_read_temp
	movl	%eax, %ebx
	testl	%r14d, %r14d
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX30102_REG_TEMP_CONFIG,4,2   ## @MAX30102_REG_TEMP_CONFIG
	.comm	_MAX30102_REG_TEMP_CONFIG_TEMP_EN,4,2 ## @MAX30102_REG_TEMP_CONFIG_TEMP_EN
	.no_dead_strip	_max30102_get_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max30102_get_temp
_max30102_get_temp:                     ; @max30102_get_temp
	.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, x2
	mov	x21, x1
	mov	x19, x0
	cbz	w2, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_max30102_set_power
	mov	x22, x0
	cbnz	w0, LBB0_5
LBB0_2:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _MAX30102_REG_TEMP_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX30102_REG_TEMP_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MAX30102_REG_TEMP_CONFIG_TEMP_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX30102_REG_TEMP_CONFIG_TEMP_EN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.3:
	cbz	w20, LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_max30102_set_power
LBB0_5:
	mov	x0, x22
	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
LBB0_6:
	mov	w0, #35
	bl	_msleep
	mov	x0, x19
	mov	x1, x21
	bl	_max30102_read_temp
	mov	x22, x0
	cbnz	w20, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX30102_REG_TEMP_CONFIG,4,2   ; @MAX30102_REG_TEMP_CONFIG
	.comm	_MAX30102_REG_TEMP_CONFIG_TEMP_EN,4,2 ; @MAX30102_REG_TEMP_CONFIG_TEMP_EN
	.no_dead_strip	_max30102_get_temp
.subsections_via_symbols
