	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function release_group
_release_group:                         ## @release_group
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.2:
	movq	(%rbx), %rax
	movq	_MCAST_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	leaq	36(%rbx), %rdi
	callq	_cancel_delayed_work
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	leaq	28(%rbx), %rdi
	movq	_mgid0@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	leaq	24(%rbx), %rdx
	callq	_del_sysfs_port_mcg_attr
LBB0_8:
	leaq	20(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mcg_warn_group
LBB0_10:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.11:
	leaq	16(%rbx), %rdi
	leaq	4(%r14), %rsi
	callq	_rb_erase
LBB0_12:
	leaq	12(%rbx), %rdi
	callq	_list_del_init
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_kfree
	movl	$1, %eax
	jmp	LBB0_13
LBB0_4:
	movq	%r12, %rdi
	callq	_atomic_inc
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCAST_IDLE,8,3                 ## @MCAST_IDLE
	.comm	_mgid0,4,2                      ## @mgid0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"releasing a group with non empty pending list\n"

	.no_dead_strip	_release_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function release_group
_release_group:                         ; @release_group
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x20, x0
	ldr	x19, [x0, #40]
	mov	x0, x19
	bl	_mutex_lock
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	add	x22, x20, #32
	mov	x0, x22
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_12
; %bb.1:
	cbnz	w23, LBB0_4
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _MCAST_IDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCAST_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	add	x0, x20, #36
	bl	_cancel_delayed_work
	cbz	w0, LBB0_11
LBB0_4:
	add	x0, x20, #28
Lloh3:
	adrp	x1, _mgid0@GOTPAGE
Lloh4:
	ldr	x1, [x1, _mgid0@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcmp
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldp	w1, w0, [x19, #8]
	add	x2, x20, #24
	bl	_del_sysfs_port_mcg_attr
LBB0_6:
	add	x0, x20, #20
	bl	_list_empty
	cbnz	w0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mcg_warn_group
LBB0_8:
	cbz	w22, LBB0_10
; %bb.9:
	add	x0, x20, #16
	add	x1, x19, #4
	bl	_rb_erase
LBB0_10:
	add	x0, x20, #12
	bl	_list_del_init
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	bl	_kfree
	mov	w0, #1
	b	LBB0_13
LBB0_11:
	mov	x0, x22
	bl	_atomic_inc
LBB0_12:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MCAST_IDLE,8,3                 ; @MCAST_IDLE
	.comm	_mgid0,4,2                      ; @mgid0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"releasing a group with non empty pending list\n"

	.no_dead_strip	_release_group
.subsections_via_symbols
