	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenbusb_release_confighook
_xenbusb_release_confighook:            ## @xenbusb_release_confighook
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setg	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	decq	(%rbx)
	je	LBB0_1
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_1:
	movl	8(%rbx), %eax
	movq	_XBS_ATTACH_CH_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.2:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_mtx_unlock
	addq	$16, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_config_intrhook_disestablish   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Connecting device count error\n"

	.comm	_XBS_ATTACH_CH_ACTIVE,4,2       ## @XBS_ATTACH_CH_ACTIVE
	.no_dead_strip	_xenbusb_release_confighook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenbusb_release_confighook
_xenbusb_release_confighook:            ; @xenbusb_release_confighook
	.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
	add	x20, x0, #12
	mov	x0, x20
	bl	_mtx_lock
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.eq	LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtx_unlock
LBB0_2:
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x9, _XBS_ATTACH_CH_ACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _XBS_ATTACH_CH_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:
	bic	w8, w8, w9
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_mtx_unlock
	add	x0, x19, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_config_intrhook_disestablish
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Connecting device count error\n"

	.comm	_XBS_ATTACH_CH_ACTIVE,4,2       ; @XBS_ATTACH_CH_ACTIVE
	.no_dead_strip	_xenbusb_release_confighook
.subsections_via_symbols
