	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7146_remove_one
_saa7146_remove_one:                    ## @saa7146_remove_one
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_pci_get_drvdata
	movq	%rax, %rdi
	callq	_to_saa7146_dev
	movq	%rax, %r14
	movq	56(%rax), %r12
	movq	%r12, -112(%rbp)
	movl	48(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	40(%r14), %rax
	movq	%rax, -96(%rbp)
	movl	32(%r14), %eax
	movl	%eax, -88(%rbp)
	movq	24(%r14), %rax
	movq	%rax, -80(%rbp)
	movl	16(%r14), %eax
	movl	%eax, -72(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, -56(%rbp)
	movq	%r14, %rdi
	callq	_DEB_EE
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	_MC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$16711680, %edx                 ## imm = 0xFF0000
	callq	_saa7146_write
	movq	_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_saa7146_write
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_free_irq
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	leaq	-96(%rbp), %rbx
	movq	_SAA7146_RPS_MEM@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	-8(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_pci_free_consistent
	movq	(%rbx), %r12
	addq	$16, %rbx
	testq	%r12, %r12
	jne	LBB0_2
LBB0_3:
	movl	4(%r14), %edi
	callq	_iounmap
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_release_region
	movq	%r14, %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_pci_disable_device
	movq	%r14, %rdi
	callq	_kfree
	movq	_saa7146_num@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MC1,4,2                        ## @MC1
	.comm	_IER,4,2                        ## @IER
	.comm	_SAA7146_RPS_MEM,4,2            ## @SAA7146_RPS_MEM
	.comm	_saa7146_num,4,2                ## @saa7146_num
	.no_dead_strip	_saa7146_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7146_remove_one
_saa7146_remove_one:                    ; @saa7146_remove_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_pci_get_drvdata
	bl	_to_saa7146_dev
	mov	x20, x0
	ldr	x21, [x0, #56]
	str	x21, [sp, #8]
	ldr	w8, [x0, #48]
	str	w8, [sp, #16]
	ldr	x8, [x0, #40]
	str	x8, [sp, #24]
	ldr	w8, [x0, #32]
	str	w8, [sp, #32]
	ldr	x8, [x0, #24]
	str	x8, [sp, #40]
	ldr	w8, [x0, #16]
	str	w8, [sp, #48]
	str	xzr, [sp, #56]
	str	wzr, [sp, #64]
	bl	_DEB_EE
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
Lloh3:
	adrp	x8, _MC1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MC1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #16711680
	bl	_saa7146_write
Lloh6:
	adrp	x8, _IER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_saa7146_write
	ldr	w0, [x19]
	mov	x1, x20
	bl	_free_irq
	cbz	x21, LBB0_3
; %bb.1:
	add	x8, sp, #8
	add	x22, x8, #16
Lloh9:
	adrp	x23, _SAA7146_RPS_MEM@GOTPAGE
Lloh10:
	ldr	x23, [x23, _SAA7146_RPS_MEM@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldur	w3, [x22, #-8]
	mov	x0, x19
	mov	x2, x21
	bl	_pci_free_consistent
	ldr	x21, [x22], #16
	cbnz	x21, LBB0_2
LBB0_3:
	ldr	w0, [x20, #4]
	bl	_iounmap
	mov	x0, x19
	mov	w1, #0
	bl	_pci_release_region
	mov	x0, x20
	bl	_list_del
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x20
	bl	_kfree
Lloh11:
	adrp	x8, _saa7146_num@GOTPAGE
Lloh12:
	ldr	x8, [x8, _saa7146_num@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MC1,4,2                        ; @MC1
	.comm	_IER,4,2                        ; @IER
	.comm	_SAA7146_RPS_MEM,4,2            ; @SAA7146_RPS_MEM
	.comm	_saa7146_num,4,2                ; @saa7146_num
	.no_dead_strip	_saa7146_remove_one
.subsections_via_symbols
