	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bme680_core_probe
LCPI0_0:
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	320                             ## 0x140
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bme680_core_probe
	.p2align	4, 0x90
_bme680_core_probe:                     ## @bme680_core_probe
	.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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_BME680_REG_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BME680_CMD_SOFTRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_BME680_REG_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	-44(%rbp), %edx
	movq	_BME680_CHIP_ID_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	testq	%r13, %r13
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_ACPI_HANDLE
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	callq	_bme680_match_acpi_device
	movq	%rax, %r13
	jmp	LBB0_13
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_20
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_11:
	xorl	%r13d, %r13d
LBB0_13:
	movq	%r15, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	%r12, 24(%rbx)
	movq	%rbx, %r12
	movq	%r14, 32(%r15)
	movq	%r13, (%r15)
	movq	_bme680_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 28(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 24(%r15)
	movq	_bme680_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,4,8,320]
	movups	%xmm0, (%rbx)
	movl	$150, 16(%rbx)
	movq	%rbx, %rdi
	callq	_bme680_chip_config
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movq	%r12, %rdi
	callq	_bme680_gas_config
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movq	%r12, %rsi
	addq	$20, %rsi
	movq	%r12, %rdi
	callq	_bme680_read_calib
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_iio_device_register
	movl	%eax, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_16:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_18:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_BME680_REG_SOFT_RESET,4,2      ## @BME680_REG_SOFT_RESET
	.comm	_BME680_CMD_SOFTRESET,4,2       ## @BME680_CMD_SOFTRESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to reset chip\n"

	.comm	_BME680_REG_CHIP_ID,4,2         ## @BME680_REG_CHIP_ID
L_.str.1:                               ## @.str.1
	.asciz	"Error reading chip ID\n"

	.comm	_BME680_CHIP_ID_VAL,4,2         ## @BME680_CHIP_ID_VAL
L_.str.2:                               ## @.str.2
	.asciz	"Wrong chip ID, got %x expected %x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bme680_channels,4,2            ## @bme680_channels
	.comm	_bme680_info,4,2                ## @bme680_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.3:                               ## @.str.3
	.asciz	"failed to set chip_config data\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to set gas config data\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to read calibration coefficients at probe\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function bme680_core_probe
lCPI0_0:
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	320                             ; 0x140
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bme680_core_probe
	.p2align	2
_bme680_core_probe:                     ; @bme680_core_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BME680_REG_SOFT_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BME680_REG_SOFT_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BME680_CMD_SOFTRESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BME680_CMD_SOFTRESET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_regmap_write
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _BME680_REG_CHIP_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BME680_REG_CHIP_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #28
	mov	x0, x21
	bl	_regmap_read
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	w8, [sp, #28]
Lloh9:
	adrp	x9, _BME680_CHIP_ID_VAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BME680_CHIP_ID_VAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x19
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
	cbnz	x23, LBB0_15
; %bb.5:
	mov	x0, x19
	bl	_ACPI_HANDLE
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x19
	bl	_bme680_match_acpi_device
	mov	x23, x0
	b	LBB0_15
LBB0_7:
	mov	x22, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x22, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_10:
	stp	x8, x9, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	mov	x23, #0
LBB0_15:
	mov	x0, x20
	bl	_iio_priv
	mov	x24, x0
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	str	x21, [x24, #24]
	str	x19, [x20, #32]
	str	x23, [x20]
Lloh22:
	adrp	x8, _bme680_channels@GOTPAGE
Lloh23:
	ldr	x8, [x8, _bme680_channels@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	str	w0, [x20, #28]
	bl	_ARRAY_SIZE
	str	w0, [x20, #24]
Lloh25:
	adrp	x8, _bme680_info@GOTPAGE
Lloh26:
	ldr	x8, [x8, _bme680_info@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh27:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh30:
	adrp	x8, lCPI0_0@PAGE
Lloh31:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x24]
	mov	w8, #150
	str	w8, [x24, #16]
	mov	x0, x24
	bl	_bme680_chip_config
	tbnz	w0, #31, LBB0_19
; %bb.16:
	mov	x0, x24
	bl	_bme680_gas_config
	tbnz	w0, #31, LBB0_20
; %bb.17:
	add	x1, x24, #20
	mov	x0, x24
	bl	_bme680_read_calib
	tbnz	w0, #31, LBB0_21
; %bb.18:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x22, x0
	b	LBB0_13
LBB0_19:
	mov	x22, x0
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_20:
	mov	x22, x0
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_21:
	mov	x22, x0
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_BME680_REG_SOFT_RESET,4,2      ; @BME680_REG_SOFT_RESET
	.comm	_BME680_CMD_SOFTRESET,4,2       ; @BME680_CMD_SOFTRESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to reset chip\n"

	.comm	_BME680_REG_CHIP_ID,4,2         ; @BME680_REG_CHIP_ID
l_.str.1:                               ; @.str.1
	.asciz	"Error reading chip ID\n"

	.comm	_BME680_CHIP_ID_VAL,4,2         ; @BME680_CHIP_ID_VAL
l_.str.2:                               ; @.str.2
	.asciz	"Wrong chip ID, got %x expected %x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bme680_channels,4,2            ; @bme680_channels
	.comm	_bme680_info,4,2                ; @bme680_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.3:                               ; @.str.3
	.asciz	"failed to set chip_config data\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to set gas config data\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to read calibration coefficients at probe\n"

.subsections_via_symbols
