	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3697_remove
_lm3697_remove:                         ## @lm3697_remove
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	movl	32(%rax), %edi
	movq	_LM3697_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LM3697_CTRL_A_B_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_2:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	callq	_gpiod_direction_output
LBB0_4:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	callq	_regulator_disable
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movq	%rbx, %rdi
	callq	_mutex_destroy
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3697_CTRL_ENABLE,4,2         ## @LM3697_CTRL_ENABLE
	.comm	_LM3697_CTRL_A_B_EN,4,2         ## @LM3697_CTRL_A_B_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to disable the device\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to disable regulator\n"

	.no_dead_strip	_lm3697_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3697_remove
_lm3697_remove:                         ; @lm3697_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_i2c_get_clientdata
	mov	x19, x0
	ldr	w0, [x0, #32]
Lloh0:
	adrp	x8, _LM3697_CTRL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM3697_CTRL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _LM3697_CTRL_A_B_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM3697_CTRL_A_B_EN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_2:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w1, #0
	bl	_gpiod_direction_output
LBB0_4:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.5:
	bl	_regulator_disable
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_7:
	mov	x0, x19
	bl	_mutex_destroy
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3697_CTRL_ENABLE,4,2         ; @LM3697_CTRL_ENABLE
	.comm	_LM3697_CTRL_A_B_EN,4,2         ; @LM3697_CTRL_A_B_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to disable the device\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to disable regulator\n"

	.no_dead_strip	_lm3697_remove
.subsections_via_symbols
