	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pti_release_masterchannel      ## -- Begin function pti_release_masterchannel
	.p2align	4, 0x90
_pti_release_masterchannel:             ## @pti_release_masterchannel
	.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
	movq	_alloclock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movl	(%rbx), %ecx
	movl	4(%rbx), %eax
	movq	_APP_BASE_ID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_3
## %bb.2:
	movq	_drv_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	jmp	LBB0_6
LBB0_3:
	movq	_OS_BASE_ID@GOTPCREL(%rip), %rsi
	movq	_drv_data@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	(%rsi), %ecx
	jne	LBB0_5
## %bb.4:
	addq	$8, %rdx
	jmp	LBB0_6
LBB0_5:
	addq	$16, %rdx
LBB0_6:
	movl	%eax, %ecx
	andb	$7, %cl
	movl	$-129, %esi
	sarl	%cl, %esi
	sarl	$3, %eax
	movq	(%rdx), %rcx
	cltq
	andl	%esi, (%rcx,%rax,4)
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	movq	_alloclock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_alloclock,4,2                  ## @alloclock
	.comm	_APP_BASE_ID,4,2                ## @APP_BASE_ID
	.comm	_drv_data,8,3                   ## @drv_data
	.comm	_OS_BASE_ID,4,2                 ## @OS_BASE_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pti_release_masterchannel      ; -- Begin function pti_release_masterchannel
	.p2align	2
_pti_release_masterchannel:             ; @pti_release_masterchannel
	.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
Lloh0:
	adrp	x0, _alloclock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _alloclock@GOTPAGEOFF]
	bl	_mutex_lock
	cbz	x19, LBB0_5
; %bb.1:
	ldp	w9, w8, [x19]
Lloh2:
	adrp	x10, _APP_BASE_ID@GOTPAGE
Lloh3:
	ldr	x10, [x10, _APP_BASE_ID@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, _drv_data@GOTPAGE
Lloh6:
	ldr	x9, [x9, _drv_data@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x10, _OS_BASE_ID@GOTPAGE
Lloh9:
	ldr	x10, [x10, _OS_BASE_ID@GOTPAGEOFF]
Lloh10:
	adrp	x11, _drv_data@GOTPAGE
Lloh11:
	ldr	x11, [x11, _drv_data@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	ldr	x11, [x11]
	cmp	w9, w10
	add	x9, x11, #16
	add	x10, x11, #8
	csel	x9, x9, x10, ne
LBB0_4:
	and	w10, w8, #0x7
	mov	w11, #-129
	asr	w10, w11, w10
	asr	w8, w8, #3
	ldr	x9, [x9]
	sbfiz	x8, x8, #2, #32
	ldr	w11, [x9, x8]
	and	w10, w11, w10
	str	w10, [x9, x8]
	mov	x0, x19
	bl	_kfree
LBB0_5:
Lloh14:
	adrp	x0, _alloclock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _alloclock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_alloclock,4,2                  ; @alloclock
	.comm	_APP_BASE_ID,4,2                ; @APP_BASE_ID
	.comm	_drv_data,8,3                   ; @drv_data
	.comm	_OS_BASE_ID,4,2                 ; @OS_BASE_ID
.subsections_via_symbols
