	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bme680_chip_config
_bme680_chip_config:                    ## @bme680_chip_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, %r15
	movl	(%rdi), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movq	_BME680_OSRS_HUMIDITY_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	12(%r15), %edi
	callq	_bme680_oversampling_to_reg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FIELD_PREP
	movl	(%r15), %edi
	movq	_BME680_REG_CTRL_HUMIDITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	movq	_BME680_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BME680_FILTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BME680_FILTER_COEFF_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_BME680_OSRS_TEMP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	8(%r15), %edi
	callq	_bme680_oversampling_to_reg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movq	_BME680_OSRS_PRESS_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movl	4(%r15), %edi
	callq	_bme680_oversampling_to_reg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movl	(%r15), %edi
	movq	_BME680_REG_CTRL_MEAS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_BME680_OSRS_TEMP_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%ebx, %ecx
	callq	_regmap_write_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BME680_OSRS_HUMIDITY_MASK,4,2  ## @BME680_OSRS_HUMIDITY_MASK
	.comm	_BME680_REG_CTRL_HUMIDITY,4,2   ## @BME680_REG_CTRL_HUMIDITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write ctrl_hum register\n"

	.comm	_BME680_REG_CONFIG,4,2          ## @BME680_REG_CONFIG
	.comm	_BME680_FILTER_MASK,4,2         ## @BME680_FILTER_MASK
	.comm	_BME680_FILTER_COEFF_VAL,4,2    ## @BME680_FILTER_COEFF_VAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to write config register\n"

	.comm	_BME680_OSRS_TEMP_MASK,4,2      ## @BME680_OSRS_TEMP_MASK
	.comm	_BME680_OSRS_PRESS_MASK,4,2     ## @BME680_OSRS_PRESS_MASK
	.comm	_BME680_REG_CTRL_MEAS,4,2       ## @BME680_REG_CTRL_MEAS
L_.str.2:                               ## @.str.2
	.asciz	"failed to write ctrl_meas register\n"

	.no_dead_strip	_bme680_chip_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bme680_chip_config
_bme680_chip_config:                    ; @bme680_chip_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
Lloh0:
	adrp	x22, _BME680_OSRS_HUMIDITY_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BME680_OSRS_HUMIDITY_MASK@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	w0, [x20, #12]
	bl	_bme680_oversampling_to_reg
	mov	x1, x0
	mov	x0, x21
	bl	_FIELD_PREP
	mov	x3, x0
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _BME680_REG_CTRL_HUMIDITY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BME680_REG_CTRL_HUMIDITY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _BME680_REG_CONFIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BME680_REG_CONFIG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _BME680_FILTER_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BME680_FILTER_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _BME680_FILTER_COEFF_VAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BME680_FILTER_COEFF_VAL@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh14:
	adrp	x23, _BME680_OSRS_TEMP_MASK@GOTPAGE
Lloh15:
	ldr	x23, [x23, _BME680_OSRS_TEMP_MASK@GOTPAGEOFF]
	ldr	w21, [x23]
	ldr	w0, [x20, #8]
	bl	_bme680_oversampling_to_reg
	mov	x1, x0
	mov	x0, x21
	bl	_FIELD_PREP
	mov	x21, x0
Lloh16:
	adrp	x24, _BME680_OSRS_PRESS_MASK@GOTPAGE
Lloh17:
	ldr	x24, [x24, _BME680_OSRS_PRESS_MASK@GOTPAGEOFF]
	ldr	w22, [x24]
	ldr	w0, [x20, #4]
	bl	_bme680_oversampling_to_reg
	mov	x1, x0
	mov	x0, x22
	bl	_FIELD_PREP
	orr	w3, w0, w21
	ldr	w0, [x20]
Lloh18:
	adrp	x8, _BME680_REG_CTRL_MEAS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BME680_REG_CTRL_MEAS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w2, w9, w8
	bl	_regmap_write_bits
	mov	x21, x0
	tbz	w0, #31, LBB0_7
; %bb.3:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BME680_OSRS_HUMIDITY_MASK,4,2  ; @BME680_OSRS_HUMIDITY_MASK
	.comm	_BME680_REG_CTRL_HUMIDITY,4,2   ; @BME680_REG_CTRL_HUMIDITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write ctrl_hum register\n"

	.comm	_BME680_REG_CONFIG,4,2          ; @BME680_REG_CONFIG
	.comm	_BME680_FILTER_MASK,4,2         ; @BME680_FILTER_MASK
	.comm	_BME680_FILTER_COEFF_VAL,4,2    ; @BME680_FILTER_COEFF_VAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to write config register\n"

	.comm	_BME680_OSRS_TEMP_MASK,4,2      ; @BME680_OSRS_TEMP_MASK
	.comm	_BME680_OSRS_PRESS_MASK,4,2     ; @BME680_OSRS_PRESS_MASK
	.comm	_BME680_REG_CTRL_MEAS,4,2       ; @BME680_REG_CTRL_MEAS
l_.str.2:                               ; @.str.2
	.asciz	"failed to write ctrl_meas register\n"

	.no_dead_strip	_bme680_chip_config
.subsections_via_symbols
