	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sht15_probe
_sht15_probe:                           ## @sht15_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	68(%rax), %rdi
	movq	_sht15_bh_read_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	64(%rbx), %rdi
	movq	_sht15_update_voltage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	leaq	60(%rbx), %rdi
	callq	_mutex_init
	movq	%r14, 32(%rbx)
	leaq	56(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_devm_regulator_get_optional
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 48(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	48(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_26
LBB0_3:
	movq	8(%rbx), %rdi
	callq	_regulator_get_voltage
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, (%rbx)
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_11:
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 40(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	40(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_15
LBB0_7:
	leaq	16(%rbx), %rsi
	movq	_sht15_invalidate_voltage@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rdi
	callq	_regulator_register_notifier
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_25
LBB0_13:
	callq	_gpiod_to_irq
	movq	_sht15_interrupt_fired@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.7(%rip), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_23:
	movq	8(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_26
## %bb.24:
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	addq	$16, %rsi
	callq	_regulator_unregister_notifier
LBB0_25:
	movq	8(%rbx), %rdi
	callq	_regulator_disable
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	40(%rbx), %rdi
	callq	_gpiod_to_irq
	movl	%eax, %edi
	callq	_disable_irq_nosync
	movq	%rbx, %rdi
	callq	_sht15_connection_reset
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.17:
	movq	%rbx, %rdi
	callq	_sht15_soft_reset
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.18:
	movq	_sht15_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r15d
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_15
LBB0_20:
	movq	32(%rbx), %rdi
	callq	_hwmon_device_register
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	_sht15_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	jmp	LBB0_23
LBB0_21:
	xorl	%r15d, %r15d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sht15_bh_read_data,4,2         ## @sht15_bh_read_data
	.comm	_sht15_update_voltage,4,2       ## @sht15_update_voltage
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable regulator: %d\n"

	.comm	_sht15_invalidate_voltage,4,2   ## @sht15_invalidate_voltage
L_.str.2:                               ## @.str.2
	.asciz	"regulator notifier request failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"clk"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.4:                               ## @.str.4
	.asciz	"clock line GPIO request failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"data"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.6:                               ## @.str.6
	.asciz	"data line GPIO request failed\n"

	.comm	_sht15_interrupt_fired,4,2      ## @sht15_interrupt_fired
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.7:                               ## @.str.7
	.asciz	"sht15 data"

L_.str.8:                               ## @.str.8
	.asciz	"failed to get irq for data line\n"

	.comm	_sht15_attr_group,4,2           ## @sht15_attr_group
L_.str.9:                               ## @.str.9
	.asciz	"sysfs create failed\n"

	.no_dead_strip	_sht15_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sht15_probe
_sht15_probe:                           ; @sht15_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, x0, #68
Lloh3:
	adrp	x8, _sht15_bh_read_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sht15_bh_read_data@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #64
Lloh6:
	adrp	x8, _sht15_update_voltage@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sht15_update_voltage@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x0, x19, #60
	bl	_mutex_init
	str	x20, [x19, #32]
	add	x0, x19, #56
	bl	_init_waitqueue_head
	ldr	x0, [x19, #32]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_regulator_get_optional
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_5
LBB0_2:
Lloh11:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x0, [x19, #48]
	bl	_PTR_ERR
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_4:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_regulator_get_voltage
	cbz	w0, LBB0_7
; %bb.6:
	str	w0, [x19]
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_regulator_enable
	cbz	w0, LBB0_11
; %bb.8:
	mov	x21, x0
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_19
LBB0_9:
Lloh23:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	x0, [x19, #40]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #40]
	cbz	x8, LBB0_13
; %bb.10:
	bl	_PTR_ERR
	mov	x21, x0
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_15
LBB0_11:
Lloh30:
	adrp	x8, _sht15_invalidate_voltage@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sht15_invalidate_voltage@GOTPAGEOFF]
	mov	x1, x19
	str	x8, [x1, #16]!
	ldur	x0, [x1, #-8]
	bl	_regulator_register_notifier
	cbz	w0, LBB0_2
; %bb.12:
	mov	x21, x0
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_18
LBB0_13:
	bl	_gpiod_to_irq
	mov	x1, x0
Lloh34:
	adrp	x8, _sht15_interrupt_fired@GOTPAGE
Lloh35:
	ldr	x8, [x8, _sht15_interrupt_fired@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
Lloh40:
	adrp	x4, l_.str.7@PAGE
Lloh41:
	add	x4, x4, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_20
; %bb.14:
	mov	x21, x0
Lloh42:
	adrp	x1, l_.str.8@PAGE
Lloh43:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_dev_err
LBB0_16:
	ldr	x0, [x19, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_19
; %bb.17:
	ldr	x0, [x19, #8]
	add	x1, x19, #16
	bl	_regulator_unregister_notifier
LBB0_18:
	ldr	x0, [x19, #8]
	bl	_regulator_disable
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_20:
	ldr	x0, [x19, #40]
	bl	_gpiod_to_irq
	bl	_disable_irq_nosync
	mov	x0, x19
	bl	_sht15_connection_reset
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.21:
	mov	x0, x19
	bl	_sht15_soft_reset
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.22:
Lloh44:
	adrp	x1, _sht15_attr_group@GOTPAGE
Lloh45:
	ldr	x1, [x1, _sht15_attr_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_create_group
	cbz	w0, LBB0_24
; %bb.23:
	mov	x21, x0
Lloh46:
	adrp	x1, l_.str.9@PAGE
Lloh47:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_15
LBB0_24:
	ldr	x0, [x19, #32]
	bl	_hwmon_device_register
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
	mov	x21, x0
Lloh48:
	adrp	x1, _sht15_attr_group@GOTPAGE
Lloh49:
	ldr	x1, [x1, _sht15_attr_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_remove_group
	b	LBB0_16
LBB0_26:
	mov	w21, #0
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sht15_bh_read_data,4,2         ; @sht15_bh_read_data
	.comm	_sht15_update_voltage,4,2       ; @sht15_update_voltage
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable regulator: %d\n"

	.comm	_sht15_invalidate_voltage,4,2   ; @sht15_invalidate_voltage
l_.str.2:                               ; @.str.2
	.asciz	"regulator notifier request failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"clk"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.4:                               ; @.str.4
	.asciz	"clock line GPIO request failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"data"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.6:                               ; @.str.6
	.asciz	"data line GPIO request failed\n"

	.comm	_sht15_interrupt_fired,4,2      ; @sht15_interrupt_fired
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.7:                               ; @.str.7
	.asciz	"sht15 data"

l_.str.8:                               ; @.str.8
	.asciz	"failed to get irq for data line\n"

	.comm	_sht15_attr_group,4,2           ; @sht15_attr_group
l_.str.9:                               ; @.str.9
	.asciz	"sysfs create failed\n"

	.no_dead_strip	_sht15_probe
.subsections_via_symbols
