	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_core_put                  ## -- Begin function cx88_core_put
	.p2align	4, 0x90
_cx88_core_put:                         ## @cx88_core_put
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_release_mem_region
	leaq	40(%r14), %rdi
	callq	_refcount_dec_and_test
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_devlist@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_cx88_ir_fini
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.2:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_i2c_unregister_device
LBB0_4:
	leaq	28(%r14), %rdi
	callq	_i2c_del_adapter
LBB0_5:
	leaq	24(%r14), %rdi
	callq	_list_del
	movl	20(%r14), %edi
	callq	_iounmap
	movq	_cx88_devcount@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_devlist@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	leaq	16(%r14), %rdi
	callq	_v4l2_ctrl_handler_free
	leaq	12(%r14), %rdi
	callq	_v4l2_ctrl_handler_free
	leaq	8(%r14), %rdi
	callq	_v4l2_device_unregister
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_devlist,4,2                    ## @devlist
	.comm	_cx88_devcount,4,2              ## @cx88_devcount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_core_put                  ; -- Begin function cx88_core_put
	.p2align	2
_cx88_core_put:                         ; @cx88_core_put
	.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, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	bl	_pci_resource_start
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_len
	mov	x1, x0
	mov	x0, x21
	bl	_release_mem_region
	add	x0, x19, #40
	bl	_refcount_dec_and_test
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x0, _devlist@GOTPAGE
Lloh1:
	ldr	x0, [x0, _devlist@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x19
	bl	_cx88_ir_fini
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_i2c_unregister_device
LBB0_4:
	add	x0, x19, #28
	bl	_i2c_del_adapter
LBB0_5:
	add	x0, x19, #24
	bl	_list_del
	ldr	w0, [x19, #20]
	bl	_iounmap
Lloh2:
	adrp	x8, _cx88_devcount@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cx88_devcount@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh4:
	adrp	x0, _devlist@GOTPAGE
Lloh5:
	ldr	x0, [x0, _devlist@GOTPAGEOFF]
	bl	_mutex_unlock
	add	x0, x19, #16
	bl	_v4l2_ctrl_handler_free
	add	x0, x19, #12
	bl	_v4l2_ctrl_handler_free
	add	x0, x19, #8
	bl	_v4l2_device_unregister
	mov	x0, x19
	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
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_devlist,4,2                    ; @devlist
	.comm	_cx88_devcount,4,2              ; @cx88_devcount
.subsections_via_symbols
