	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_init_termios               ## -- Begin function tty_init_termios
	.p2align	4, 0x90
_tty_init_termios:                      ## @tty_init_termios
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	(%rdi), %r15
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	24(%r14), %rsi
	addq	$8, %rsi
	movq	%rax, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax,%r15,8)
LBB0_4:
	movq	%rbx, 8(%r14)
	leaq	8(%rbx), %rax
	movq	%rax, 16(%r14)
	movq	%rbx, %rdi
	callq	_tty_termios_input_baud_rate
	movq	8(%r14), %rdi
	movl	%eax, 4(%rdi)
	callq	_tty_termios_baud_rate
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_init_termios               ; -- Begin function tty_init_termios
	.p2align	2
_tty_init_termios:                      ; @tty_init_termios
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldrsw	x21, [x0]
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x20, [x8, x21, lsl #3]
	cbnz	x20, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x8, [x19, #24]
	add	x1, x8, #8
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	str	x20, [x8, x21, lsl #3]
LBB0_3:
	add	x8, x20, #8
	stp	x20, x8, [x19, #8]
	mov	x0, x20
	bl	_tty_termios_input_baud_rate
	ldr	x8, [x19, #8]
	str	w0, [x8, #4]
	mov	x0, x8
	bl	_tty_termios_baud_rate
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #8]
	str	w8, [x9]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
