	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_release_resources       ## -- Begin function em28xx_release_resources
	.p2align	4, 0x90
_em28xx_release_resources:              ## @em28xx_release_resources
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_em28xx_deregister_snapshot_button
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_em28xx_ir_fini
LBB0_4:
	movq	%rbx, %rdi
	callq	_em28xx_release_analog_resources
	movq	%rbx, %rdi
	callq	_em28xx_remove_from_devlist
	movq	%rbx, %rdi
	callq	_em28xx_i2c_unregister
	leaq	8(%rbx), %rdi
	callq	_v4l2_device_unregister
	movl	4(%rbx), %edi
	callq	_usb_put_dev
	movb	(%rbx), %cl
	movl	$-2, %eax
	roll	%cl, %eax
	movq	_em28xx_devused@GOTPCREL(%rip), %rcx
	andl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_em28xx_devused,4,2             ## @em28xx_devused
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_release_resources       ; -- Begin function em28xx_release_resources
	.p2align	2
_em28xx_release_resources:              ; @em28xx_release_resources
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_em28xx_deregister_snapshot_button
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_em28xx_ir_fini
LBB0_4:
	mov	x0, x19
	bl	_em28xx_release_analog_resources
	mov	x0, x19
	bl	_em28xx_remove_from_devlist
	mov	x0, x19
	bl	_em28xx_i2c_unregister
	add	x0, x19, #8
	bl	_v4l2_device_unregister
	ldr	w0, [x19, #4]
	bl	_usb_put_dev
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh0:
	adrp	x9, _em28xx_devused@GOTPAGE
Lloh1:
	ldr	x9, [x9, _em28xx_devused@GOTPAGEOFF]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_em28xx_devused,4,2             ; @em28xx_devused
.subsections_via_symbols
