	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwicap_release
_hwicap_release:                        ## @hwicap_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rbx
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movslq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$4, %eax
	jge	LBB0_2
## %bb.3:
	movq	16(%rbx), %r15
	leaq	(%r15,%rax,8), %rdi
	movl	$3, %ecx
	subl	%eax, %ecx
	leaq	8(,%rcx,8), %rsi
	callq	___bzero
	jmp	LBB0_4
LBB0_2:
	movq	16(%rbx), %r15
LBB0_4:
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_hwicap_command_desync
	movl	%eax, %r15d
LBB0_6:
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hwicap_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwicap_release
_hwicap_release:                        ; @hwicap_release
	.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
	ldr	x19, [x1]
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	ldrsw	x8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
	cmp	w8, #4
	b.ge	LBB0_3
; %bb.2:
	ldr	x21, [x19, #16]
	add	x0, x21, x8, lsl #3
	mov	w9, #3
	sub	w8, w9, w8
	lsl	x8, x8, #3
	add	x1, x8, #8
	bl	_bzero
	b	LBB0_4
LBB0_3:
	ldr	x21, [x19, #16]
LBB0_4:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_hwicap_command_desync
	mov	x21, x0
LBB0_6:
	str	xzr, [x19, #8]
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hwicap_release
.subsections_via_symbols
