	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_sensor
_add_sensor:                            ## @add_sensor
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_sscanf
	movl	$-1, %ebx
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.1:
	movq	$4, -32(%rbp)
	movl	-20(%rbp), %edx
	leaq	L_.str.1(%rip), %rcx
	leaq	-24(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_update_sensor_sysctl
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	_lm75_sensors@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	%rcx, 8(%r14)
	movl	-20(%rbp), %eax
	movl	%eax, (%r14)
	movl	-24(%rbp), %eax
	movq	_TZ_ZEROC@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, 4(%r14)
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sensors@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_TAIL
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	callq	_update_sensor
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$16, %edx
	callq	_syslog
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev.lm75.%d.temperature"

L_.str.1:                               ## @.str.1
	.asciz	"temperature"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.2:                               ## @.str.2
	.asciz	"Unable to allocate %zu bytes for resource"

	.comm	_lm75_sensors,8,3               ## @lm75_sensors
	.comm	_TZ_ZEROC,4,2                   ## @TZ_ZEROC
	.comm	_sensors,4,2                    ## @sensors
	.comm	_link,4,2                       ## @link
	.no_dead_strip	_add_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_sensor
_add_sensor:                            ; @add_sensor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #4
	str	x8, [sp]
	ldr	w2, [sp, #12]
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x1, sp
	bl	_update_sensor_sysctl
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	cbz	x0, LBB0_6
; %bb.5:
	mov	x19, x0
Lloh4:
	adrp	x8, _lm75_sensors@GOTPAGE
Lloh5:
	ldr	x8, [x8, _lm75_sensors@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	str	x9, [x0, #8]
	ldr	w8, [sp, #8]
Lloh6:
	adrp	x9, _TZ_ZEROC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TZ_ZEROC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w8, w8, w9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	ldr	w9, [sp, #12]
	stp	w9, w8, [x0]
Lloh9:
	adrp	x8, _link@GOTPAGE
Lloh10:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x0, _sensors@GOTPAGE
Lloh13:
	ldr	x0, [x0, _sensors@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_update_sensor
	mov	w0, #0
	b	LBB0_3
LBB0_6:
Lloh14:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #16
	bl	_syslog
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev.lm75.%d.temperature"

l_.str.1:                               ; @.str.1
	.asciz	"temperature"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.2:                               ; @.str.2
	.asciz	"Unable to allocate %zu bytes for resource"

	.comm	_lm75_sensors,8,3               ; @lm75_sensors
	.comm	_TZ_ZEROC,4,2                   ; @TZ_ZEROC
	.comm	_sensors,4,2                    ; @sensors
	.comm	_link,4,2                       ; @link
	.no_dead_strip	_add_sensor
.subsections_via_symbols
