	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp280_chip_config
_bmp280_chip_config:                    ## @bmp280_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	incq	%rdi
	callq	_BMP280_OSRS_TEMP_X
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	incq	%rdi
	callq	_BMP280_OSRS_PRESS_X
	orl	%eax, %ebx
	movl	4(%r14), %edi
	movq	_BMP280_OSRS_TEMP_MASK@GOTPCREL(%rip), %rax
	movq	_BMP280_OSRS_PRESS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_BMP280_REG_CTRL_MEAS@GOTPCREL(%rip), %rax
	movq	_BMP280_MODE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_BMP280_MODE_NORMAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %ecx
	callq	_regmap_write_bits
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	movq	_BMP280_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMP280_FILTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMP280_FILTER_4X@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movl	(%r14), %edi
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMP280_REG_CTRL_MEAS,4,2       ## @BMP280_REG_CTRL_MEAS
	.comm	_BMP280_OSRS_TEMP_MASK,4,2      ## @BMP280_OSRS_TEMP_MASK
	.comm	_BMP280_OSRS_PRESS_MASK,4,2     ## @BMP280_OSRS_PRESS_MASK
	.comm	_BMP280_MODE_MASK,4,2           ## @BMP280_MODE_MASK
	.comm	_BMP280_MODE_NORMAL,4,2         ## @BMP280_MODE_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write ctrl_meas register\n"

	.comm	_BMP280_REG_CONFIG,4,2          ## @BMP280_REG_CONFIG
	.comm	_BMP280_FILTER_MASK,4,2         ## @BMP280_FILTER_MASK
	.comm	_BMP280_FILTER_4X,4,2           ## @BMP280_FILTER_4X
L_.str.1:                               ## @.str.1
	.asciz	"failed to write config register\n"

	.no_dead_strip	_bmp280_chip_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmp280_chip_config
_bmp280_chip_config:                    ; @bmp280_chip_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	add	x0, x8, #1
	bl	_BMP280_OSRS_TEMP_X
	mov	x20, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #1
	bl	_BMP280_OSRS_PRESS_X
	orr	w8, w0, w20
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x9, _BMP280_REG_CTRL_MEAS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BMP280_REG_CTRL_MEAS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _BMP280_OSRS_TEMP_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BMP280_OSRS_TEMP_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _BMP280_OSRS_PRESS_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BMP280_OSRS_PRESS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _BMP280_MODE_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BMP280_MODE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w2, w9, w10
Lloh12:
	adrp	x9, _BMP280_MODE_NORMAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BMP280_MODE_NORMAL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w8, w9
	bl	_regmap_write_bits
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x8, _BMP280_REG_CONFIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BMP280_REG_CONFIG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _BMP280_FILTER_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BMP280_FILTER_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _BMP280_FILTER_4X@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BMP280_FILTER_4X@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	mov	x20, x0
	tbz	w0, #31, LBB0_5
; %bb.2:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x20, x0
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	ldr	w0, [x19]
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BMP280_REG_CTRL_MEAS,4,2       ; @BMP280_REG_CTRL_MEAS
	.comm	_BMP280_OSRS_TEMP_MASK,4,2      ; @BMP280_OSRS_TEMP_MASK
	.comm	_BMP280_OSRS_PRESS_MASK,4,2     ; @BMP280_OSRS_PRESS_MASK
	.comm	_BMP280_MODE_MASK,4,2           ; @BMP280_MODE_MASK
	.comm	_BMP280_MODE_NORMAL,4,2         ; @BMP280_MODE_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write ctrl_meas register\n"

	.comm	_BMP280_REG_CONFIG,4,2          ; @BMP280_REG_CONFIG
	.comm	_BMP280_FILTER_MASK,4,2         ; @BMP280_FILTER_MASK
	.comm	_BMP280_FILTER_4X,4,2           ; @BMP280_FILTER_4X
l_.str.1:                               ; @.str.1
	.asciz	"failed to write config register\n"

	.no_dead_strip	_bmp280_chip_config
.subsections_via_symbols
