	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_rx_second
_open_rx_second:                        ## @open_rx_second
	.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, %rbx
	movl	$49235, %edi                    ## imm = 0xC053
	callq	_inb_p
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DPRINTK
	movl	4(%rbx), %edi
	callq	_ZATM_DEV
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ZATM_VCC
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %ebx
	movl	%ebx, %r12d
	sarl	%r12d
	shll	$4, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_zpeekl
	notb	%bl
	andb	$16, %bl
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	%ebx, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_uPD98401_RXLT_ENBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r14), %esi
	shll	%cl, %esi
	orl	%edx, %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_zpokel
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open_rx_second (0x%x)\n"

	.comm	_uPD98401_RXLT_ENBL,4,2         ## @uPD98401_RXLT_ENBL
	.no_dead_strip	_open_rx_second
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_rx_second
_open_rx_second:                        ; @open_rx_second
	.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	x20, x0
	mov	w0, #49235
	bl	_inb_p
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
	ldr	w0, [x20, #4]
	bl	_ZATM_DEV
	mov	x19, x0
	mov	x0, x20
	bl	_ZATM_VCC
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	asr	w20, w8, #1
	mov	w9, #16
	bic	w22, w9, w8, lsl #4
	mov	x0, x19
	mov	x1, x20
	bl	_zpeekl
	mov	w8, #65535
	lsl	w8, w8, w22
	bic	w8, w0, w8
	ldr	w9, [x21]
Lloh2:
	adrp	x10, _uPD98401_RXLT_ENBL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _uPD98401_RXLT_ENBL@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	orr	w9, w10, w9
	lsl	w9, w9, w22
	orr	w1, w8, w9
	mov	x0, x19
	mov	x2, x20
	bl	_zpokel
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_2:
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open_rx_second (0x%x)\n"

	.comm	_uPD98401_RXLT_ENBL,4,2         ; @uPD98401_RXLT_ENBL
	.no_dead_strip	_open_rx_second
.subsections_via_symbols
