	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp280_spi_probe
_bmp280_spi_probe:                      ## @bmp280_spi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_spi_get_device_id
	movq	%rax, %r14
	movl	$8, (%r12)
	movq	%r12, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_3
## %bb.5:
	cltq
	leaq	l_switch.table.bmp280_spi_probe(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	8(%r12), %r15
	movq	_bmp280_regmap_bus@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r15, %rdx
	callq	_devm_regmap_init
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	%eax, %ebx
	addq	$8, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	movl	4(%r12), %r8d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bmp280_common_probe            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spi_setup failed!\n"

	.comm	_bmp180_regmap_config,4,2       ## @bmp180_regmap_config
	.comm	_bmp280_regmap_config,4,2       ## @bmp280_regmap_config
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_bmp280_regmap_bus,4,2          ## @bmp280_regmap_bus
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate register map\n"

	.no_dead_strip	_bmp280_spi_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.bmp280_spi_probe
l_switch.table.bmp280_spi_probe:
	.quad	_bmp280_regmap_config
	.quad	_bmp180_regmap_config
	.quad	_bmp280_regmap_config

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmp280_spi_probe
_bmp280_spi_probe:                      ; @bmp280_spi_probe
	.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	x19, x0
	bl	_spi_get_device_id
	mov	x20, x0
	mov	w8, #8
	str	w8, [x19]
	mov	x0, x19
	bl	_spi_setup
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.bmp280_spi_probe@PAGE
Lloh1:
	add	x9, x9, l_switch.table.bmp280_spi_probe@PAGEOFF
	ldr	x3, [x9, w8, sxtw #3]
	add	x21, x19, #8
Lloh2:
	adrp	x1, _bmp280_regmap_bus@GOTPAGE
Lloh3:
	ldr	x1, [x1, _bmp280_regmap_bus@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, x21
	bl	_devm_regmap_init
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	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
	b	_PTR_ERR
LBB0_4:
	mov	x21, x0
	add	x0, x19, #8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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_7:
	ldp	w2, w3, [x20]
	ldr	w4, [x19, #4]
	mov	x0, x21
	mov	x1, 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
	b	_bmp280_common_probe
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spi_setup failed!\n"

	.comm	_bmp180_regmap_config,4,2       ; @bmp180_regmap_config
	.comm	_bmp280_regmap_config,4,2       ; @bmp280_regmap_config
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_bmp280_regmap_bus,4,2          ; @bmp280_regmap_bus
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate register map\n"

	.no_dead_strip	_bmp280_spi_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.bmp280_spi_probe
l_switch.table.bmp280_spi_probe:
	.quad	_bmp280_regmap_config
	.quad	_bmp180_regmap_config
	.quad	_bmp280_regmap_config

.subsections_via_symbols
