	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iop3xx_i2c_remove
_iop3xx_i2c_remove:                     ## @iop3xx_i2c_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	%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, %rbx
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	8(%rax), %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r15
	movq	_CR_OFFSET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	___raw_readl
	movq	_IOP3XX_ICR_ALD_IE@GOTPCREL(%rip), %rcx
	movq	_IOP3XX_ICR_BERR_IE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	orq	(%rcx), %rdi
	movq	_IOP3XX_ICR_RXFULL_IE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdi
	movq	_IOP3XX_ICR_TXEMPTY_IE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdi
	notq	%rdi
	andq	%rax, %rdi
	movq	(%rbx), %rsi
	addq	(%r12), %rsi
	callq	___raw_writel
	movq	(%r12), %rdi
	callq	_iounmap
	movl	(%r15), %edi
	movq	_IOP3XX_I2C_IO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_release_mem_region
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_CR_OFFSET,8,3                  ## @CR_OFFSET
	.comm	_IOP3XX_ICR_ALD_IE,8,3          ## @IOP3XX_ICR_ALD_IE
	.comm	_IOP3XX_ICR_BERR_IE,8,3         ## @IOP3XX_ICR_BERR_IE
	.comm	_IOP3XX_ICR_RXFULL_IE,8,3       ## @IOP3XX_ICR_RXFULL_IE
	.comm	_IOP3XX_ICR_TXEMPTY_IE,8,3      ## @IOP3XX_ICR_TXEMPTY_IE
	.comm	_IOP3XX_I2C_IO_SIZE,4,2         ## @IOP3XX_I2C_IO_SIZE
	.no_dead_strip	_iop3xx_i2c_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iop3xx_i2c_remove
_iop3xx_i2c_remove:                     ; @iop3xx_i2c_remove
	.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
	mov	x20, x0
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x20, x0
	ldr	x8, [x21]
Lloh3:
	adrp	x22, _CR_OFFSET@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CR_OFFSET@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	___raw_readl
Lloh5:
	adrp	x8, _IOP3XX_ICR_ALD_IE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IOP3XX_ICR_ALD_IE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _IOP3XX_ICR_BERR_IE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IOP3XX_ICR_BERR_IE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh11:
	adrp	x9, _IOP3XX_ICR_RXFULL_IE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IOP3XX_ICR_RXFULL_IE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh14:
	adrp	x9, _IOP3XX_ICR_TXEMPTY_IE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IOP3XX_ICR_TXEMPTY_IE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	orr	x8, x8, x9
	bic	x0, x0, x8
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	___raw_writel
	ldr	x0, [x21]
	bl	_iounmap
	ldr	w0, [x20]
Lloh17:
	adrp	x8, _IOP3XX_I2C_IO_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IOP3XX_I2C_IO_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_release_mem_region
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	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 AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_CR_OFFSET,8,3                  ; @CR_OFFSET
	.comm	_IOP3XX_ICR_ALD_IE,8,3          ; @IOP3XX_ICR_ALD_IE
	.comm	_IOP3XX_ICR_BERR_IE,8,3         ; @IOP3XX_ICR_BERR_IE
	.comm	_IOP3XX_ICR_RXFULL_IE,8,3       ; @IOP3XX_ICR_RXFULL_IE
	.comm	_IOP3XX_ICR_TXEMPTY_IE,8,3      ; @IOP3XX_ICR_TXEMPTY_IE
	.comm	_IOP3XX_I2C_IO_SIZE,4,2         ; @IOP3XX_I2C_IO_SIZE
	.no_dead_strip	_iop3xx_i2c_remove
.subsections_via_symbols
