	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function el3_open
_el3_open:                              ## @el3_open
	.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
	movslq	(%rdi), %r14
	movq	_TxReset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	_RxReset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	_SetStatusEnb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	addq	%r14, %rsi
	callq	_outw
	movq	_el3_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edi
	movl	8(%rbx), %ecx
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	xorl	%edi, %edi
	callq	_EL3WINDOW
	movq	_el3_debug@GOTPCREL(%rip), %r13
	cmpl	$4, (%r13)
	jl	LBB0_3
## %bb.2:
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_EL3_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	addq	%r14, %r12
	movq	%r12, %rdi
	callq	_inw
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_3:
	movq	%rbx, %rdi
	callq	_el3_up
	cmpl	$4, (%r13)
	jl	LBB0_5
## %bb.4:
	movl	4(%rbx), %r12d
	movl	8(%rbx), %ebx
	movq	_EL3_STATUS@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rdi
	callq	_inw
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TxReset,4,2                    ## @TxReset
	.comm	_EL3_CMD,8,3                    ## @EL3_CMD
	.comm	_RxReset,4,2                    ## @RxReset
	.comm	_SetStatusEnb,4,2               ## @SetStatusEnb
	.comm	_el3_interrupt,4,2              ## @el3_interrupt
	.comm	_el3_debug,4,2                  ## @el3_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Opening, IRQ %d\t status@%x %4.4x.\n"

	.comm	_EL3_STATUS,8,3                 ## @EL3_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"%s: Opened 3c509  IRQ %d  status %4.4x.\n"

	.no_dead_strip	_el3_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function el3_open
_el3_open:                              ; @el3_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _TxReset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TxReset@GOTPAGEOFF]
	ldrsw	x24, [x0]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _EL3_CMD@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EL3_CMD@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, x24
	bl	_outw
Lloh5:
	adrp	x8, _RxReset@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RxReset@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x1, x8, x24
	bl	_outw
Lloh8:
	adrp	x8, _SetStatusEnb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SetStatusEnb@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x1, x8, x24
	bl	_outw
Lloh11:
	adrp	x8, _el3_interrupt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _el3_interrupt@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldp	w0, w3, [x19, #4]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	bl	_EL3WINDOW
Lloh14:
	adrp	x26, _el3_debug@GOTPAGE
Lloh15:
	ldr	x26, [x26, _el3_debug@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh16:
	adrp	x25, _EL3_STATUS@GOTPAGE
Lloh17:
	ldr	x25, [x25, _EL3_STATUS@GOTPAGEOFF]
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.2:
	ldp	w22, w21, [x19, #4]
	ldr	x8, [x25]
	add	x23, x8, x24
	mov	x0, x23
	bl	_inw
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_pr_debug
LBB0_3:
	mov	x0, x19
	bl	_el3_up
	ldr	w8, [x26]
	cmp	w8, #4
	b.lt	LBB0_5
; %bb.4:
	ldp	w19, w21, [x19, #4]
	ldr	x8, [x25]
	add	x0, x8, x24
	bl	_inw
	mov	x3, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_pr_debug
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TxReset,4,2                    ; @TxReset
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
	.comm	_RxReset,4,2                    ; @RxReset
	.comm	_SetStatusEnb,4,2               ; @SetStatusEnb
	.comm	_el3_interrupt,4,2              ; @el3_interrupt
	.comm	_el3_debug,4,2                  ; @el3_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Opening, IRQ %d\t status@%x %4.4x.\n"

	.comm	_EL3_STATUS,8,3                 ; @EL3_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"%s: Opened 3c509  IRQ %d  status %4.4x.\n"

	.no_dead_strip	_el3_open
.subsections_via_symbols
