	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_remove_device              ## -- Begin function dvb_remove_device
	.p2align	4, 0x90
_dvb_remove_device:                     ## @dvb_remove_device
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	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
	movq	%rdi, %rbx
	movq	_minor_rwsem@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_down_write
	movq	_dvb_minors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%r14, %rdi
	callq	_up_write
	movq	%rbx, %rdi
	callq	_dvb_media_device_free
	movq	_dvb_class@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_DVB_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_MKDEV
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_device_destroy
	addq	$8, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_list_del                       ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_minor_rwsem,4,2                ## @minor_rwsem
	.comm	_dvb_minors,8,3                 ## @dvb_minors
	.comm	_dvb_class,4,2                  ## @dvb_class
	.comm	_DVB_MAJOR,4,2                  ## @DVB_MAJOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_remove_device              ; -- Begin function dvb_remove_device
	.p2align	2
_dvb_remove_device:                     ; @dvb_remove_device
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	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
	mov	x19, x0
Lloh0:
	adrp	x20, _minor_rwsem@GOTPAGE
Lloh1:
	ldr	x20, [x20, _minor_rwsem@GOTPAGEOFF]
	mov	x0, x20
	bl	_down_write
Lloh2:
	adrp	x8, _dvb_minors@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dvb_minors@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_up_write
	mov	x0, x19
	bl	_dvb_media_device_free
Lloh5:
	adrp	x8, _dvb_class@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dvb_class@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _DVB_MAJOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DVB_MAJOR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x1, [x19], #8
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x20
	bl	_device_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_list_del
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_minor_rwsem,4,2                ; @minor_rwsem
	.comm	_dvb_minors,8,3                 ; @dvb_minors
	.comm	_dvb_class,4,2                  ; @dvb_class
	.comm	_DVB_MAJOR,4,2                  ; @DVB_MAJOR
.subsections_via_symbols
