	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_i2c_remove_bus
_aspeed_i2c_remove_bus:                 ## @aspeed_i2c_remove_bus
	.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	_platform_get_drvdata
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_ASPEED_I2C_FUN_CTRL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_ASPEED_I2C_INTR_CTRL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%rbx), %edi
	callq	_reset_control_assert
	movq	%rbx, %rdi
	callq	_i2c_del_adapter
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASPEED_I2C_FUN_CTRL_REG,8,3    ## @ASPEED_I2C_FUN_CTRL_REG
	.comm	_ASPEED_I2C_INTR_CTRL_REG,8,3   ## @ASPEED_I2C_INTR_CTRL_REG
	.no_dead_strip	_aspeed_i2c_remove_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aspeed_i2c_remove_bus
_aspeed_i2c_remove_bus:                 ; @aspeed_i2c_remove_bus
	.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	_platform_get_drvdata
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _ASPEED_I2C_FUN_CTRL_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASPEED_I2C_FUN_CTRL_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _ASPEED_I2C_INTR_CTRL_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASPEED_I2C_INTR_CTRL_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #4]
	bl	_reset_control_assert
	mov	x0, x19
	bl	_i2c_del_adapter
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ASPEED_I2C_FUN_CTRL_REG,8,3    ; @ASPEED_I2C_FUN_CTRL_REG
	.comm	_ASPEED_I2C_INTR_CTRL_REG,8,3   ; @ASPEED_I2C_INTR_CTRL_REG
	.no_dead_strip	_aspeed_i2c_remove_bus
.subsections_via_symbols
