	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmjpeg_release               ## -- Begin function brcmjpeg_release
	.p2align	4, 0x90
_brcmjpeg_release:                      ## @brcmjpeg_release
	.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
	callq	_LOCK_COMP
	decq	8(%rbx)
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_UNLOCK_COMP                    ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	callq	_LOCK
	movq	(%rbx), %rax
	movq	_BRCMJPEG_TYPE_ENCODER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_brcmjpeg_encoder@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_brcmjpeg_decoder@GOTPCREL(%rip), %rax
LBB0_4:
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_UNLOCK
	movq	%rbx, %rdi
	callq	_UNLOCK_COMP
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_brcmjpeg_destroy               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMJPEG_TYPE_ENCODER,8,3      ## @BRCMJPEG_TYPE_ENCODER
	.comm	_brcmjpeg_encoder,8,3           ## @brcmjpeg_encoder
	.comm	_brcmjpeg_decoder,8,3           ## @brcmjpeg_decoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmjpeg_release               ; -- Begin function brcmjpeg_release
	.p2align	2
_brcmjpeg_release:                      ; @brcmjpeg_release
	.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
	bl	_LOCK_COMP
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	str	x8, [x19, #8]
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UNLOCK_COMP
LBB0_2:
	bl	_LOCK
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _BRCMJPEG_TYPE_ENCODER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMJPEG_TYPE_ENCODER@GOTPAGEOFF]
Lloh2:
	adrp	x10, _brcmjpeg_decoder@GOTPAGE
Lloh3:
	ldr	x10, [x10, _brcmjpeg_decoder@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _brcmjpeg_encoder@GOTPAGE
Lloh6:
	ldr	x11, [x11, _brcmjpeg_encoder@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	str	xzr, [x8]
	bl	_UNLOCK
	mov	x0, x19
	bl	_UNLOCK_COMP
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_brcmjpeg_destroy
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMJPEG_TYPE_ENCODER,8,3      ; @BRCMJPEG_TYPE_ENCODER
	.comm	_brcmjpeg_encoder,8,3           ; @brcmjpeg_encoder
	.comm	_brcmjpeg_decoder,8,3           ; @brcmjpeg_decoder
.subsections_via_symbols
