	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_i2c_remove
_pch_i2c_remove:                        ## @pch_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, %r14
	callq	_pci_get_drvdata
	movq	%rax, %r15
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_free_irq
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	callq	_pch_i2c_disbl_int
	movq	8(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$8, %rdi
	callq	_i2c_del_adapter
	incq	%r12
	movslq	(%r15), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jl	LBB0_2
LBB0_3:
	movq	8(%r15), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_pci_iounmap
	movl	(%r15), %ecx
LBB0_5:
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.6:
	movq	8(%r15), %rax
	movl	%ecx, %edx
	leaq	-1(%rdx), %rsi
	movl	%edx, %ecx
	andl	$3, %ecx
	cmpq	$3, %rsi
	jae	LBB0_8
## %bb.7:
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_8:
	andl	$-4, %edx
	leaq	48(%rax), %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rdi)
	movq	$0, -32(%rdi)
	movq	$0, -16(%rdi)
	movq	$0, (%rdi)
	addq	$4, %rsi
	addq	$64, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_9
LBB0_10:
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:
	shlq	$4, %rsi
	addq	%rsi, %rax
	shlq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pch_i2c_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_i2c_remove
_pch_i2c_remove:                        ; @pch_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	x19, x0
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, x20
	bl	_free_irq
	ldr	w10, [x20]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x21
	bl	_pch_i2c_disbl_int
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	add	x0, x8, #8
	bl	_i2c_del_adapter
	add	x22, x22, #1
	ldrsw	x10, [x20]
	add	x21, x21, #16
	cmp	x22, x10
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x1, [x8]
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_pci_iounmap
	ldr	w10, [x20]
LBB0_5:
	cmp	w10, #1
	b.lt	LBB0_13
; %bb.6:
	ldr	x9, [x20, #8]
	mov	w8, w10
	cmp	w10, #4
	b.hs	LBB0_8
; %bb.7:
	mov	x10, #0
	b	LBB0_11
LBB0_8:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #32
	mov	x12, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stur	xzr, [x11, #-32]
	stur	xzr, [x11, #-16]
	str	xzr, [x11]
	str	xzr, [x11, #16]
	add	x11, x11, #64
	subs	x12, x12, #4
	b.ne	LBB0_9
; %bb.10:
	cmp	x10, x8
	b.eq	LBB0_13
LBB0_11:
	add	x9, x9, x10, lsl #4
	sub	x8, x8, x10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9], #16
	subs	x8, x8, #1
	b.ne	LBB0_12
LBB0_13:
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x20
	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
	b	_kfree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pch_i2c_remove
.subsections_via_symbols
