	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tty
_get_tty:                               ## @get_tty
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ipw_tty_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	jg	LBB0_1
## %bb.2:
	movq	_IPWIRELESS_PCMCIA_MINORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmpl	%edi, %ecx
	jle	LBB0_1
## %bb.3:
	subl	%eax, %edi
	movq	_ipwireless_loopback@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_IPWIRELESS_PCMCIA_MINOR_RANGE@GOTPCREL(%rip), %rax
	movq	_TTYTYPE_RAS_RAW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	cmpl	%ecx, %edi
	jge	LBB0_1
LBB0_5:
	movq	_ttys@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipw_tty_driver,8,3             ## @ipw_tty_driver
	.comm	_IPWIRELESS_PCMCIA_MINORS,4,2   ## @IPWIRELESS_PCMCIA_MINORS
	.comm	_ipwireless_loopback,4,2        ## @ipwireless_loopback
	.comm	_IPWIRELESS_PCMCIA_MINOR_RANGE,4,2 ## @IPWIRELESS_PCMCIA_MINOR_RANGE
	.comm	_TTYTYPE_RAS_RAW,4,2            ## @TTYTYPE_RAS_RAW
	.comm	_ttys,8,3                       ## @ttys
	.no_dead_strip	_get_tty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tty
_get_tty:                               ; @get_tty
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ipw_tty_driver@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipw_tty_driver@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, w0
	b.gt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, _IPWIRELESS_PCMCIA_MINORS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPWIRELESS_PCMCIA_MINORS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w9, w9, w8
	cmp	w9, w0
	b.le	LBB0_5
; %bb.2:
	sub	w8, w0, w8
Lloh6:
	adrp	x9, _ipwireless_loopback@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ipwireless_loopback@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cbnz	w9, LBB0_4
; %bb.3:
Lloh9:
	adrp	x9, _IPWIRELESS_PCMCIA_MINOR_RANGE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPWIRELESS_PCMCIA_MINOR_RANGE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _TTYTYPE_RAS_RAW@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TTYTYPE_RAS_RAW@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	mul	w9, w10, w9
	cmp	w8, w9
	b.ge	LBB0_5
LBB0_4:
Lloh15:
	adrp	x9, _ttys@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ttys@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x0, [x9, w8, sxtw #3]
	ret
LBB0_5:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ipw_tty_driver,8,3             ; @ipw_tty_driver
	.comm	_IPWIRELESS_PCMCIA_MINORS,4,2   ; @IPWIRELESS_PCMCIA_MINORS
	.comm	_ipwireless_loopback,4,2        ; @ipwireless_loopback
	.comm	_IPWIRELESS_PCMCIA_MINOR_RANGE,4,2 ; @IPWIRELESS_PCMCIA_MINOR_RANGE
	.comm	_TTYTYPE_RAS_RAW,4,2            ; @TTYTYPE_RAS_RAW
	.comm	_ttys,8,3                       ; @ttys
	.no_dead_strip	_get_tty
.subsections_via_symbols
