	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tty_mode_ioctl
_tty_mode_ioctl:                        ## @tty_mode_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	%rdi, %r14
	cmpq	_pty_master@GOTPCREL(%rip), %rax
	jne	LBB0_2
## %bb.1:
	movq	32(%r12), %r14
	movq	%r14, %rdi
	callq	_lock
LBB0_2:
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_5
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_tty_set_winsize
	jmp	LBB0_11
LBB0_5:
	movq	__ENOTTY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_6:
	movl	16(%r14), %eax
	jmp	LBB0_8
LBB0_7:
	movl	20(%r14), %eax
LBB0_8:
	movl	%eax, (%r15)
	jmp	LBB0_11
LBB0_9:
	movl	$0, 28(%r14)
	leaq	24(%r14), %rdi
	callq	_notify
LBB0_10:
	movl	(%r15), %eax
	movl	%eax, 20(%r14)
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	8(%r12), %rax
	cmpq	_pty_master@GOTPCREL(%rip), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_unlock
LBB0_14:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_pty_master,4,2                 ## @pty_master
	.comm	__ENOTTY,4,2                    ## @_ENOTTY
	.no_dead_strip	_tty_mode_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tty_mode_ioctl
_tty_mode_ioctl:                        ; @tty_mode_ioctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x23, _pty_master@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pty_master@GOTPAGEOFF]
	mov	x19, x0
	cmp	x8, x23
	b.ne	LBB0_2
; %bb.1:
	ldr	x19, [x20, #32]
	mov	x0, x19
	bl	_lock
LBB0_2:
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_tty_set_winsize
	mov	w22, #0
	b	LBB0_10
LBB0_5:
Lloh4:
	adrp	x8, __ENOTTY@GOTPAGE
Lloh5:
	ldr	x8, [x8, __ENOTTY@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	b	LBB0_10
LBB0_6:
	mov	w22, #0
	ldr	w8, [x19, #16]
	str	w8, [x21]
	b	LBB0_10
LBB0_7:
	mov	w22, #0
	ldr	w8, [x19, #20]
	str	w8, [x21]
	b	LBB0_10
LBB0_8:
	str	wzr, [x19, #28]
	add	x0, x19, #24
	bl	_notify
LBB0_9:
	mov	w22, #0
	ldr	w8, [x21]
	str	w8, [x19, #20]
LBB0_10:
	ldr	x8, [x20, #8]
	cmp	x8, x23
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_unlock
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
                                        ; -- End function
	.comm	_pty_master,4,2                 ; @pty_master
	.comm	__ENOTTY,4,2                    ; @_ENOTTY
	.no_dead_strip	_tty_mode_ioctl
.subsections_via_symbols
