	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3532_led_disable
_lm3532_led_disable:                    ## @lm3532_led_disable
	.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
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_BIT
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.1:
	movq	8(%rbx), %rcx
	movl	8(%rcx), %edi
	movq	_LM3532_REG_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %r14d
	movq	8(%rbx), %rax
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_7
LBB0_3:
	movl	(%rax), %edi
	callq	_regulator_disable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	$0, (%rbx)
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3532_REG_ENABLE,4,2          ## @LM3532_REG_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set ctrl:%d\n"

	.no_dead_strip	_lm3532_led_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3532_led_disable
_lm3532_led_disable:                    ; @lm3532_led_disable
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_BIT
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
Lloh0:
	adrp	x8, _LM3532_REG_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM3532_REG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	x8, [x19, #8]
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w0, [x8, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_7
LBB0_3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x8]
	bl	_regulator_disable
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	w20, #0
	str	xzr, [x19]
	b	LBB0_7
LBB0_6:
	mov	x20, x0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3532_REG_ENABLE,4,2          ; @LM3532_REG_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set ctrl:%d\n"

	.no_dead_strip	_lm3532_led_disable
.subsections_via_symbols
