	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pti_request_masterchannel      ## -- Begin function pti_request_masterchannel
	.p2align	4, 0x90
_pti_request_masterchannel:             ## @pti_request_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_alloclock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	cmpl	$2, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$1, %ebx
	je	LBB0_5
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.4:
	movq	_drv_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rax
	movq	_APP_BASE_ID@GOTPCREL(%rip), %rcx
	movq	_MAX_APP_IDS@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_6:
	movq	_drv_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MODEM_BASE_ID@GOTPCREL(%rip), %rcx
	movq	_MAX_MODEM_IDS@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_5:
	movq	_drv_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$4, %rax
	movq	_OS_BASE_ID@GOTPCREL(%rip), %rcx
	movq	_MAX_OS_IDS@GOTPCREL(%rip), %rdx
LBB0_7:
	movl	(%rax), %edi
	movl	(%rdx), %esi
	movl	(%rcx), %edx
	movq	%r14, %rcx
	callq	_get_id
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
LBB0_8:
	movq	_alloclock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_alloclock,4,2                  ## @alloclock
	.comm	_drv_data,8,3                   ## @drv_data
	.comm	_MAX_APP_IDS,4,2                ## @MAX_APP_IDS
	.comm	_APP_BASE_ID,4,2                ## @APP_BASE_ID
	.comm	_MAX_OS_IDS,4,2                 ## @MAX_OS_IDS
	.comm	_OS_BASE_ID,4,2                 ## @OS_BASE_ID
	.comm	_MAX_MODEM_IDS,4,2              ## @MAX_MODEM_IDS
	.comm	_MODEM_BASE_ID,4,2              ## @MODEM_BASE_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pti_request_masterchannel      ; -- Begin function pti_request_masterchannel
	.p2align	2
_pti_request_masterchannel:             ; @pti_request_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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _alloclock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _alloclock@GOTPAGEOFF]
	bl	_mutex_lock
	cmp	w20, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w20, LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _drv_data@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drv_data@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, #8
Lloh5:
	adrp	x9, _APP_BASE_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _APP_BASE_ID@GOTPAGEOFF]
Lloh7:
	adrp	x10, _MAX_APP_IDS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MAX_APP_IDS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _drv_data@GOTPAGE
Lloh10:
	ldr	x8, [x8, _drv_data@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _MODEM_BASE_ID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MODEM_BASE_ID@GOTPAGEOFF]
Lloh14:
	adrp	x10, _MAX_MODEM_IDS@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MAX_MODEM_IDS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _drv_data@GOTPAGE
Lloh17:
	ldr	x8, [x8, _drv_data@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x8, x8, #4
Lloh19:
	adrp	x9, _OS_BASE_ID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _OS_BASE_ID@GOTPAGEOFF]
Lloh21:
	adrp	x10, _MAX_OS_IDS@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MAX_OS_IDS@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldr	w1, [x10]
	ldr	w2, [x9]
	mov	x3, x19
	bl	_get_id
	mov	x19, x0
	b	LBB0_8
LBB0_7:
	mov	x19, #0
LBB0_8:
Lloh23:
	adrp	x0, _alloclock@GOTPAGE
Lloh24:
	ldr	x0, [x0, _alloclock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_alloclock,4,2                  ; @alloclock
	.comm	_drv_data,8,3                   ; @drv_data
	.comm	_MAX_APP_IDS,4,2                ; @MAX_APP_IDS
	.comm	_APP_BASE_ID,4,2                ; @APP_BASE_ID
	.comm	_MAX_OS_IDS,4,2                 ; @MAX_OS_IDS
	.comm	_OS_BASE_ID,4,2                 ; @OS_BASE_ID
	.comm	_MAX_MODEM_IDS,4,2              ; @MAX_MODEM_IDS
	.comm	_MODEM_BASE_ID,4,2              ; @MODEM_BASE_ID
.subsections_via_symbols
