	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esp_basic_init
_esp_basic_init:                        ## @esp_basic_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_UART_ESI_CMD1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ESI_SET_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_serial_out
	movq	_ESP_STAT_NEVER_DMA@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	(%rbx), %eax
	movq	_UART_ESI_CMD2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$49, %edx
	movl	$1, %r13d
	cmovnel	%r13d, %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r14), %esi
	movq	_ESI_SET_SRV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_serial_out
	movl	(%r14), %esi
	movq	_ESI_SET_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r12), %eax
	andl	(%rbx), %eax
	movq	_dma@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shll	$4, %edx
	orl	$1, %edx
	testl	%eax, %eax
	movl	(%r15), %esi
	cmovnel	%r13d, %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r14), %esi
	movq	_ESI_SET_ENH_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	testb	$7, 4(%rbx)
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$13, %edx
	jmp	LBB0_4
LBB0_2:
	movl	8(%rbx), %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	cmpl	$9, %edx
	jne	LBB0_4
## %bb.3:
	movl	$2, %edx
LBB0_4:
	callq	_serial_out
	movl	(%r14), %esi
	movq	_ESI_SET_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r12), %eax
	andl	(%rbx), %eax
	movl	(%r15), %esi
	movl	$189, %eax
	movl	$161, %edx
	cmovel	%eax, %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_serial_out
	movl	(%r14), %esi
	movq	_ESI_SET_DMA_TMOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_serial_out
	movl	(%r14), %esi
	movq	_ESI_SET_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r15), %esi
	movl	12(%rbx), %edx
	sarl	$8, %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r15), %esi
	movl	12(%rbx), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r15), %esi
	movl	16(%rbx), %edx
	sarl	$8, %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r15), %esi
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r14), %esi
	movq	_ESI_SET_PRESCALAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r15), %esi
	movq	_ESPC_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	$4, %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r14), %esi
	movq	_ESI_SET_REINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_serial_out
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_serial_out                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_ESI_CMD1,4,2              ## @UART_ESI_CMD1
	.comm	_ESI_SET_MODE,4,2               ## @ESI_SET_MODE
	.comm	_ESP_STAT_NEVER_DMA,4,2         ## @ESP_STAT_NEVER_DMA
	.comm	_UART_ESI_CMD2,4,2              ## @UART_ESI_CMD2
	.comm	_ESI_SET_SRV_MASK,4,2           ## @ESI_SET_SRV_MASK
	.comm	_ESI_SET_IRQ,4,2                ## @ESI_SET_IRQ
	.comm	_dma,4,2                        ## @dma
	.comm	_ESI_SET_ENH_IRQ,4,2            ## @ESI_SET_ENH_IRQ
	.comm	_ESI_SET_ERR_MASK,4,2           ## @ESI_SET_ERR_MASK
	.comm	_ESI_SET_DMA_TMOUT,4,2          ## @ESI_SET_DMA_TMOUT
	.comm	_ESI_SET_TRIGGER,4,2            ## @ESI_SET_TRIGGER
	.comm	_ESI_SET_PRESCALAR,4,2          ## @ESI_SET_PRESCALAR
	.comm	_ESPC_SCALE,4,2                 ## @ESPC_SCALE
	.comm	_ESI_SET_REINTR,4,2             ## @ESI_SET_REINTR
	.no_dead_strip	_esp_basic_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esp_basic_init
_esp_basic_init:                        ; @esp_basic_init
	.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
Lloh0:
	adrp	x20, _UART_ESI_CMD1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _UART_ESI_CMD1@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _ESI_SET_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ESI_SET_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_serial_out
	ldr	w8, [x19]
Lloh5:
	adrp	x22, _ESP_STAT_NEVER_DMA@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ESP_STAT_NEVER_DMA@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh7:
	adrp	x21, _UART_ESI_CMD2@GOTPAGE
Lloh8:
	ldr	x21, [x21, _UART_ESI_CMD2@GOTPAGEOFF]
	ldr	w1, [x21]
	tst	w9, w8
	mov	w8, #49
	csinc	w2, w8, wzr, eq
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x20]
Lloh9:
	adrp	x8, _ESI_SET_SRV_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ESI_SET_SRV_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_serial_out
	ldr	w1, [x20]
Lloh12:
	adrp	x8, _ESI_SET_IRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ESI_SET_IRQ@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_out
	ldr	w8, [x19]
	ldr	w9, [x22]
Lloh15:
	adrp	x10, _dma@GOTPAGE
Lloh16:
	ldr	x10, [x10, _dma@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh17:
	ldr	w10, [x10]
	mov	w11, #1
	bfi	w11, w10, #4, #28
	tst	w9, w8
	csinc	w2, w11, wzr, eq
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x20]
Lloh18:
	adrp	x8, _ESI_SET_ENH_IRQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ESI_SET_ENH_IRQ@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_out
	ldrb	w8, [x19, #4]
	tst	w8, #0x7
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #13
	b	LBB0_4
LBB0_2:
	ldr	w2, [x19, #8]
	ldr	w1, [x21]
	mov	x0, x19
	cmp	w2, #9
	b.ne	LBB0_4
; %bb.3:
	mov	w2, #2
LBB0_4:
	bl	_serial_out
	ldr	w1, [x20]
Lloh21:
	adrp	x8, _ESI_SET_ERR_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ESI_SET_ERR_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_out
	ldr	w8, [x19]
	ldr	w9, [x22]
	ldr	w1, [x21]
	tst	w9, w8
	mov	w8, #161
	mov	w9, #189
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_serial_out
	ldr	w1, [x20]
Lloh24:
	adrp	x8, _ESI_SET_DMA_TMOUT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ESI_SET_DMA_TMOUT@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #255
	bl	_serial_out
	ldr	w1, [x20]
Lloh27:
	adrp	x8, _ESI_SET_TRIGGER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ESI_SET_TRIGGER@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x21]
	ldr	w8, [x19, #12]
	asr	w2, w8, #8
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x21]
	ldr	w2, [x19, #12]
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x21]
	ldr	w8, [x19, #16]
	asr	w2, w8, #8
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x21]
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x20]
Lloh30:
	adrp	x8, _ESI_SET_PRESCALAR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ESI_SET_PRESCALAR@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x21]
Lloh33:
	adrp	x8, _ESPC_SCALE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ESPC_SCALE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w2, w8, #0x4
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x20]
Lloh36:
	adrp	x8, _ESI_SET_REINTR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ESI_SET_REINTR@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_serial_out
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #255
	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	_serial_out
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_ESI_CMD1,4,2              ; @UART_ESI_CMD1
	.comm	_ESI_SET_MODE,4,2               ; @ESI_SET_MODE
	.comm	_ESP_STAT_NEVER_DMA,4,2         ; @ESP_STAT_NEVER_DMA
	.comm	_UART_ESI_CMD2,4,2              ; @UART_ESI_CMD2
	.comm	_ESI_SET_SRV_MASK,4,2           ; @ESI_SET_SRV_MASK
	.comm	_ESI_SET_IRQ,4,2                ; @ESI_SET_IRQ
	.comm	_dma,4,2                        ; @dma
	.comm	_ESI_SET_ENH_IRQ,4,2            ; @ESI_SET_ENH_IRQ
	.comm	_ESI_SET_ERR_MASK,4,2           ; @ESI_SET_ERR_MASK
	.comm	_ESI_SET_DMA_TMOUT,4,2          ; @ESI_SET_DMA_TMOUT
	.comm	_ESI_SET_TRIGGER,4,2            ; @ESI_SET_TRIGGER
	.comm	_ESI_SET_PRESCALAR,4,2          ; @ESI_SET_PRESCALAR
	.comm	_ESPC_SCALE,4,2                 ; @ESPC_SCALE
	.comm	_ESI_SET_REINTR,4,2             ; @ESI_SET_REINTR
	.no_dead_strip	_esp_basic_init
.subsections_via_symbols
