	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yam_set_uart
_yam_set_uart:                          ## @yam_set_uart
	.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	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rcx
	movl	$115200, %eax                   ## imm = 0x1C200
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%eax, %r14d
	movl	(%r15), %edi
	callq	_IER
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_LCR_DLAB@GOTPCREL(%rip), %rax
	movq	_LCR_BIT8@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	orl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_LCR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%r15), %edi
	callq	_DLL
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%r15), %edi
	callq	_DLM
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%r12), %ebx
	movl	(%r15), %edi
	callq	_LCR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_PTT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_MCR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%r15), %edi
	callq	_FCR
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%r15), %edi
	callq	_RBR
	movl	%eax, %edi
	callq	_inb
	movl	(%r15), %edi
	callq	_MSR
	movl	%eax, %edi
	callq	_inb
	movq	_ENABLE_RTXINT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_IER
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LCR_DLAB,4,2                   ## @LCR_DLAB
	.comm	_LCR_BIT8,4,2                   ## @LCR_BIT8
	.comm	_PTT_OFF,4,2                    ## @PTT_OFF
	.comm	_ENABLE_RTXINT,4,2              ## @ENABLE_RTXINT
	.no_dead_strip	_yam_set_uart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yam_set_uart
_yam_set_uart:                          ; @yam_set_uart
	.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
	bl	_netdev_priv
	ldr	w8, [x0]
	mov	w9, #49664
	movk	w9, #1, lsl #16
	ldr	w0, [x19]
	sdiv	w20, w9, w8
	bl	_IER
	mov	x1, x0
	mov	w0, #0
	bl	_outb
Lloh0:
	adrp	x8, _LCR_DLAB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LCR_DLAB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _LCR_BIT8@GOTPAGE
Lloh4:
	ldr	x22, [x22, _LCR_BIT8@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w21, w9, w8
	ldr	w0, [x19]
	bl	_LCR
	mov	x1, x0
	mov	x0, x21
	bl	_outb
	ldr	w0, [x19]
	bl	_DLL
	mov	x1, x0
	mov	x0, x20
	bl	_outb
	ldr	w0, [x19]
	bl	_DLM
	mov	x1, x0
	mov	w0, #0
	bl	_outb
	ldr	w20, [x22]
	ldr	w0, [x19]
	bl	_LCR
	mov	x1, x0
	mov	x0, x20
	bl	_outb
Lloh5:
	adrp	x8, _PTT_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PTT_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_MCR
	mov	x1, x0
	mov	x0, x20
	bl	_outb
	ldr	w0, [x19]
	bl	_FCR
	mov	x1, x0
	mov	w0, #0
	bl	_outb
	ldr	w0, [x19]
	bl	_RBR
	bl	_inb
	ldr	w0, [x19]
	bl	_MSR
	bl	_inb
Lloh8:
	adrp	x8, _ENABLE_RTXINT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENABLE_RTXINT@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_IER
	mov	x1, x0
	mov	x0, x20
	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
	b	_outb
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LCR_DLAB,4,2                   ; @LCR_DLAB
	.comm	_LCR_BIT8,4,2                   ; @LCR_BIT8
	.comm	_PTT_OFF,4,2                    ; @PTT_OFF
	.comm	_ENABLE_RTXINT,4,2              ; @ENABLE_RTXINT
	.no_dead_strip	_yam_set_uart
.subsections_via_symbols
