	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ldops
_get_ldops:                             ## @get_ldops
	.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
	movl	%edi, %ebx
	movq	_tty_ldisc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	_tty_ldiscs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movq	(%rcx,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_try_module_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	incl	(%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rbx
LBB0_5:
	movq	_tty_ldisc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tty_ldisc_lock,4,2             ## @tty_ldisc_lock
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tty_ldiscs,8,3                 ## @tty_ldiscs
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_get_ldops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ldops
_get_ldops:                             ; @get_ldops
	.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, _tty_ldisc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _tty_ldisc_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
Lloh5:
	adrp	x8, _tty_ldiscs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tty_ldiscs@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x19, [x8, w19, sxtw #3]
	cbz	x19, LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_try_module_get
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
	mov	x19, x0
	b	LBB0_5
LBB0_4:
	mov	x19, x20
LBB0_5:
Lloh11:
	adrp	x0, _tty_ldisc_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _tty_ldisc_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_tty_ldisc_lock,4,2             ; @tty_ldisc_lock
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tty_ldiscs,8,3                 ; @tty_ldiscs
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_get_ldops
.subsections_via_symbols
