	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp007_probe
_tmp007_probe:                          ## @tmp007_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	16(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_WORD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	%r13, %rdi
	callq	_tmp007_identify
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r13, 8(%r14)
	leaq	16(%r14), %rdi
	callq	_mutex_init
	movq	%r13, 32(%r12)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_tmp007_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_tmp007_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r12)
	movq	8(%r14), %rdi
	movq	_TMP007_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:
	movl	%ebx, (%r14)
	movq	_TMP007_CONFIG_CONV_EN@GOTPCREL(%rip), %rax
	movq	_TMP007_CONFIG_ALERT_EN@GOTPCREL(%rip), %rcx
	movq	_TMP007_CONFIG_TC_EN@GOTPCREL(%rip), %rsi
	movl	(%rax), %edx
	orl	%ebx, %edx
	orl	(%rcx), %edx
	orl	(%rsi), %edx
	movl	%edx, (%r14)
	movq	8(%r14), %rdi
	movl	(%r15), %esi
	callq	_i2c_smbus_write_word_swapped
	testl	%eax, %eax
	js	LBB0_16
## %bb.5:
	movq	8(%r14), %rdi
	movq	_TMP007_STATUS_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.6:
	movq	_TMP007_STATUS_OHF@GOTPCREL(%rip), %rax
	movq	_TMP007_STATUS_OLF@GOTPCREL(%rip), %rcx
	movq	_TMP007_STATUS_LHF@GOTPCREL(%rip), %rsi
	movq	_TMP007_STATUS_LLF@GOTPCREL(%rip), %rdi
	movl	(%rax), %edx
	orl	%ebx, %edx
	orl	(%rcx), %edx
	orl	(%rsi), %edx
	orl	(%rdi), %edx
	movl	%edx, 4(%r14)
	movq	8(%r14), %rdi
	movl	(%r15), %esi
	callq	_i2c_smbus_write_word_swapped
	testl	%eax, %eax
	js	LBB0_17
## %bb.7:
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.8:
	movq	_tmp007_interrupt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_17:
	movl	%eax, %ebx
LBB0_18:
	movq	%r14, %rdi
	callq	_tmp007_powerdown
	jmp	LBB0_15
LBB0_19:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_device_register            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ## @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TMP007 not found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"tmp007"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_tmp007_info,4,2                ## @tmp007_info
	.comm	_tmp007_channels,4,2            ## @tmp007_channels
	.comm	_TMP007_CONFIG,4,2              ## @TMP007_CONFIG
	.comm	_TMP007_CONFIG_CONV_EN,4,2      ## @TMP007_CONFIG_CONV_EN
	.comm	_TMP007_CONFIG_ALERT_EN,4,2     ## @TMP007_CONFIG_ALERT_EN
	.comm	_TMP007_CONFIG_TC_EN,4,2        ## @TMP007_CONFIG_TC_EN
	.comm	_TMP007_STATUS_MASK,4,2         ## @TMP007_STATUS_MASK
	.comm	_TMP007_STATUS_OHF,4,2          ## @TMP007_STATUS_OHF
	.comm	_TMP007_STATUS_OLF,4,2          ## @TMP007_STATUS_OLF
	.comm	_TMP007_STATUS_LHF,4,2          ## @TMP007_STATUS_LHF
	.comm	_TMP007_STATUS_LLF,4,2          ## @TMP007_STATUS_LLF
	.comm	_tmp007_interrupt_handler,4,2   ## @tmp007_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"irq request error %d\n"

	.no_dead_strip	_tmp007_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp007_probe
_tmp007_probe:                          ; @tmp007_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_tmp007_identify
	cbz	w0, LBB0_11
; %bb.2:
	mov	x0, x19
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_12
; %bb.3:
	mov	x22, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	bl	_i2c_set_clientdata
	str	x19, [x20, #8]
	add	x0, x20, #16
	bl	_mutex_init
	str	x19, [x22, #32]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x22]
Lloh5:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _tmp007_info@GOTPAGE
Lloh9:
	ldr	x9, [x9, _tmp007_info@GOTPAGEOFF]
	str	w8, [x22, #24]
	str	x9, [x22, #16]
Lloh10:
	adrp	x8, _tmp007_channels@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tmp007_channels@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	w0, [x22, #12]
	bl	_ARRAY_SIZE
	str	w0, [x22, #8]
	ldr	x0, [x20, #8]
Lloh13:
	adrp	x24, _TMP007_CONFIG@GOTPAGE
Lloh14:
	ldr	x24, [x24, _TMP007_CONFIG@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_word_swapped
	mov	x23, x0
	tbnz	w0, #31, LBB0_14
; %bb.4:
	str	w23, [x20]
Lloh15:
	adrp	x8, _TMP007_CONFIG_CONV_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TMP007_CONFIG_CONV_EN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _TMP007_CONFIG_ALERT_EN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TMP007_CONFIG_ALERT_EN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _TMP007_CONFIG_TC_EN@GOTPAGE
Lloh22:
	ldr	x10, [x10, _TMP007_CONFIG_TC_EN@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w8, w8, w23
	orr	w8, w8, w9
	orr	w2, w8, w10
	str	w2, [x20]
	ldr	x0, [x20, #8]
	ldr	w1, [x24]
	bl	_i2c_smbus_write_word_swapped
	tbnz	w0, #31, LBB0_15
; %bb.5:
	ldr	x0, [x20, #8]
Lloh24:
	adrp	x24, _TMP007_STATUS_MASK@GOTPAGE
Lloh25:
	ldr	x24, [x24, _TMP007_STATUS_MASK@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_word_swapped
	mov	x23, x0
	tbnz	w0, #31, LBB0_17
; %bb.6:
Lloh26:
	adrp	x8, _TMP007_STATUS_OHF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TMP007_STATUS_OHF@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _TMP007_STATUS_OLF@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TMP007_STATUS_OLF@GOTPAGEOFF]
Lloh31:
	adrp	x10, _TMP007_STATUS_LHF@GOTPAGE
Lloh32:
	ldr	x10, [x10, _TMP007_STATUS_LHF@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	ldr	w10, [x10]
Lloh35:
	adrp	x11, _TMP007_STATUS_LLF@GOTPAGE
Lloh36:
	ldr	x11, [x11, _TMP007_STATUS_LLF@GOTPAGEOFF]
Lloh37:
	ldr	w11, [x11]
	orr	w8, w8, w23
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w2, w8, w11
	str	w2, [x20, #4]
	ldr	x0, [x20, #8]
	ldr	w1, [x24]
	bl	_i2c_smbus_write_word_swapped
	tbnz	w0, #31, LBB0_16
; %bb.7:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_18
; %bb.8:
Lloh38:
	adrp	x8, _tmp007_interrupt_handler@GOTPAGE
Lloh39:
	ldr	x8, [x8, _tmp007_interrupt_handler@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w4, w9, w8
	ldr	w5, [x21]
	mov	x0, x19
	mov	x2, #0
	mov	x6, x22
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_18
; %bb.9:
	mov	x23, x0
	neg	w8, w0
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.2@PAGE
Lloh48:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_17
LBB0_10:
Lloh49:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh51:
	adrp	x1, l_.str@PAGE
Lloh52:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh53:
	adrp	x8, _ENODEV@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh55:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	mov	x23, x0
	b	LBB0_14
LBB0_16:
	mov	x23, x0
LBB0_17:
	mov	x0, x20
	bl	_tmp007_powerdown
	b	LBB0_14
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_iio_device_register
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ; @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TMP007 not found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"tmp007"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_tmp007_info,4,2                ; @tmp007_info
	.comm	_tmp007_channels,4,2            ; @tmp007_channels
	.comm	_TMP007_CONFIG,4,2              ; @TMP007_CONFIG
	.comm	_TMP007_CONFIG_CONV_EN,4,2      ; @TMP007_CONFIG_CONV_EN
	.comm	_TMP007_CONFIG_ALERT_EN,4,2     ; @TMP007_CONFIG_ALERT_EN
	.comm	_TMP007_CONFIG_TC_EN,4,2        ; @TMP007_CONFIG_TC_EN
	.comm	_TMP007_STATUS_MASK,4,2         ; @TMP007_STATUS_MASK
	.comm	_TMP007_STATUS_OHF,4,2          ; @TMP007_STATUS_OHF
	.comm	_TMP007_STATUS_OLF,4,2          ; @TMP007_STATUS_OLF
	.comm	_TMP007_STATUS_LHF,4,2          ; @TMP007_STATUS_LHF
	.comm	_TMP007_STATUS_LLF,4,2          ; @TMP007_STATUS_LLF
	.comm	_tmp007_interrupt_handler,4,2   ; @tmp007_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"irq request error %d\n"

	.no_dead_strip	_tmp007_probe
.subsections_via_symbols
