	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bme680_gas_config
_bme680_gas_config:                     ## @bme680_gas_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
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_bme680_calc_heater_res
	movl	(%rbx), %edi
	movq	_BME680_REG_RES_HEAT_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%rbx), %edi
	callq	_bme680_calc_heater_dur
	movl	(%rbx), %edi
	movq	_BME680_REG_GAS_WAIT_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r15d
	movq	_BME680_REG_CTRL_GAS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_BME680_RUN_GAS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BME680_NB_CONV_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	orl	%edi, %r13d
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BME680_REG_RES_HEAT_0,4,2      ## @BME680_REG_RES_HEAT_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write res_heat_0 register\n"

	.comm	_BME680_REG_GAS_WAIT_0,4,2      ## @BME680_REG_GAS_WAIT_0
L_.str.1:                               ## @.str.1
	.asciz	"failed to write gas_wait_0 register\n"

	.comm	_BME680_REG_CTRL_GAS_1,4,2      ## @BME680_REG_CTRL_GAS_1
	.comm	_BME680_RUN_GAS_MASK,4,2        ## @BME680_RUN_GAS_MASK
	.comm	_BME680_NB_CONV_MASK,4,2        ## @BME680_NB_CONV_MASK
L_.str.2:                               ## @.str.2
	.asciz	"failed to write ctrl_gas_1 register\n"

	.no_dead_strip	_bme680_gas_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bme680_gas_config
_bme680_gas_config:                     ; @bme680_gas_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	x20, x0
	ldr	w0, [x0]
	bl	_regmap_get_device
	mov	x19, x0
	ldr	w1, [x20, #8]
	mov	x0, x20
	bl	_bme680_calc_heater_res
	mov	x2, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _BME680_REG_RES_HEAT_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BME680_REG_RES_HEAT_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_bme680_calc_heater_dur
	mov	x2, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _BME680_REG_GAS_WAIT_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BME680_REG_GAS_WAIT_0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w20, [x20]
Lloh6:
	adrp	x8, _BME680_REG_CTRL_GAS_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BME680_REG_CTRL_GAS_1@GOTPAGEOFF]
Lloh8:
	adrp	x9, _BME680_RUN_GAS_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BME680_RUN_GAS_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
Lloh11:
	ldr	w0, [x9]
Lloh12:
	adrp	x24, _BME680_NB_CONV_MASK@GOTPAGE
Lloh13:
	ldr	x24, [x24, _BME680_NB_CONV_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w22, w8, w0
	mov	w1, #1
	bl	_FIELD_PREP
	mov	x23, x0
	ldr	w0, [x24]
	mov	w1, #0
	bl	_FIELD_PREP
	orr	w3, w0, w23
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	mov	x21, x0
	tbz	w0, #31, LBB0_7
; %bb.3:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BME680_REG_RES_HEAT_0,4,2      ; @BME680_REG_RES_HEAT_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write res_heat_0 register\n"

	.comm	_BME680_REG_GAS_WAIT_0,4,2      ; @BME680_REG_GAS_WAIT_0
l_.str.1:                               ; @.str.1
	.asciz	"failed to write gas_wait_0 register\n"

	.comm	_BME680_REG_CTRL_GAS_1,4,2      ; @BME680_REG_CTRL_GAS_1
	.comm	_BME680_RUN_GAS_MASK,4,2        ; @BME680_RUN_GAS_MASK
	.comm	_BME680_NB_CONV_MASK,4,2        ; @BME680_NB_CONV_MASK
l_.str.2:                               ; @.str.2
	.asciz	"failed to write ctrl_gas_1 register\n"

	.no_dead_strip	_bme680_gas_config
.subsections_via_symbols
