	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkt_get_status
_pkt_get_status:                        ## @pkt_get_status
	.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, %r14
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ctl_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock_nested
	movl	24(%r14), %edi
	callq	_pkt_find_dev_from_minor
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_new_encode_dev
	movq	%rax, 16(%r14)
	movl	(%rbx), %edi
	callq	_new_encode_dev
	jmp	LBB0_3
LBB0_2:
	movq	$0, 16(%r14)
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, 8(%r14)
	movq	_MAX_WRITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ctl_mutex@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ctl_mutex,4,2                  ## @ctl_mutex
	.comm	_SINGLE_DEPTH_NESTING,4,2       ## @SINGLE_DEPTH_NESTING
	.comm	_MAX_WRITERS,4,2                ## @MAX_WRITERS
	.no_dead_strip	_pkt_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkt_get_status
_pkt_get_status:                        ; @pkt_get_status
	.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	x8, _SINGLE_DEPTH_NESTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SINGLE_DEPTH_NESTING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _ctl_mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ctl_mutex@GOTPAGEOFF]
	bl	_mutex_lock_nested
	ldr	w0, [x19, #24]
	bl	_pkt_find_dev_from_minor
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_new_encode_dev
	str	x0, [x19, #16]
	ldr	w0, [x20]
	bl	_new_encode_dev
	b	LBB0_3
LBB0_2:
	str	xzr, [x19, #16]
LBB0_3:
Lloh5:
	adrp	x8, _MAX_WRITERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_WRITERS@GOTPAGEOFF]
	str	x0, [x19, #8]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh8:
	adrp	x0, _ctl_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ctl_mutex@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ctl_mutex,4,2                  ; @ctl_mutex
	.comm	_SINGLE_DEPTH_NESTING,4,2       ; @SINGLE_DEPTH_NESTING
	.comm	_MAX_WRITERS,4,2                ; @MAX_WRITERS
	.no_dead_strip	_pkt_get_status
.subsections_via_symbols
