	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mfd_remove_devices_fn
_mfd_remove_devices_fn:                 ## @mfd_remove_devices_fn
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	cmpq	_mfd_dev_type@GOTPCREL(%rip), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_platform_device
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mfd_get_cell
	movq	%rax, %r12
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%rbx, %rdi
	callq	_regulator_bulk_unregister_supply_alias
	movq	(%r15), %rcx
	movq	(%r12), %rax
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	cmpq	%rcx, %rax
	jae	LBB0_4
LBB0_3:
	movq	%rax, (%r15)
LBB0_4:
	movq	%r14, %rdi
	callq	_platform_device_unregister
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mfd_dev_type,4,2               ## @mfd_dev_type
	.no_dead_strip	_mfd_remove_devices_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mfd_remove_devices_fn
_mfd_remove_devices_fn:                 ; @mfd_remove_devices_fn
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _mfd_dev_type@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mfd_dev_type@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_to_platform_device
	mov	x20, x0
	bl	_mfd_get_cell
	mov	x22, x0
	ldp	w2, w1, [x0, #8]
	mov	x0, x21
	bl	_regulator_bulk_unregister_supply_alias
	ldr	x9, [x19]
	ldr	x8, [x22]
	cbz	x9, LBB0_3
; %bb.2:
	cmp	x8, x9
	b.hs	LBB0_4
LBB0_3:
	str	x8, [x19]
LBB0_4:
	mov	x0, x20
	bl	_platform_device_unregister
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mfd_dev_type,4,2               ; @mfd_dev_type
	.no_dead_strip	_mfd_remove_devices_fn
.subsections_via_symbols
