	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_tx_second
_open_tx_second:                        ## @open_tx_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	%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, %r15
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTK
	movl	8(%r15), %edi
	callq	_ZATM_DEV
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ZATM_VCC
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_VC_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	imull	(%rbx), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_zpokel
	movq	_uPD98401_TXVC_L@GOTPCREL(%rip), %rax
	movl	4(%rbx), %edx
	movq	_uPD98401_TXVC_SHP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	(%rax), %edx
	movl	(%r15), %esi
	movq	_uPD98401_TXVC_VPI_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%edx, %esi
	orl	4(%r15), %esi
	movl	(%r13), %eax
	imull	(%rbx), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	incl	%edx
	movq	%r14, %rdi
	callq	_zpokel
	movl	(%r13), %eax
	imull	(%rbx), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	addl	$2, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_zpokel
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r14), %rax
	movslq	(%rbx), %rcx
	movq	%r15, (%rax,%rcx,8)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open_tx_second\n"

	.comm	_VC_SIZE,4,2                    ## @VC_SIZE
	.comm	_uPD98401_TXVC_L,4,2            ## @uPD98401_TXVC_L
	.comm	_uPD98401_TXVC_SHP_SHIFT,4,2    ## @uPD98401_TXVC_SHP_SHIFT
	.comm	_uPD98401_TXVC_VPI_SHIFT,4,2    ## @uPD98401_TXVC_VPI_SHIFT
	.no_dead_strip	_open_tx_second
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_tx_second
_open_tx_second:                        ; @open_tx_second
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
	ldr	w0, [x19, #8]
	bl	_ZATM_DEV
	mov	x20, x0
	mov	x0, x19
	bl	_ZATM_VCC
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x21, x0
	add	x22, x20, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
Lloh2:
	adrp	x23, _VC_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VC_SIZE@GOTPAGEOFF]
	ldr	w9, [x23]
	mul	w8, w9, w8
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	mov	x0, x20
	mov	w1, #0
	bl	_zpokel
Lloh4:
	adrp	x8, _uPD98401_TXVC_L@GOTPAGE
Lloh5:
	ldr	x8, [x8, _uPD98401_TXVC_L@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _uPD98401_TXVC_SHP_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _uPD98401_TXVC_SHP_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldp	w11, w10, [x21]
	lsl	w9, w10, w9
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _uPD98401_TXVC_VPI_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _uPD98401_TXVC_VPI_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldp	w10, w12, [x19]
	lsl	w9, w10, w9
	orr	w8, w8, w9
	orr	w1, w8, w12
	ldr	w8, [x23]
	mul	w8, w8, w11
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	add	w2, w8, #1
	mov	x0, x20
	bl	_zpokel
	ldr	w8, [x21]
	ldr	w9, [x23]
	mul	w8, w9, w8
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	add	w2, w8, #2
	mov	x0, x20
	mov	w1, #0
	bl	_zpokel
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20]
	ldrsw	x9, [x21]
	str	x19, [x8, x9, lsl #3]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open_tx_second\n"

	.comm	_VC_SIZE,4,2                    ; @VC_SIZE
	.comm	_uPD98401_TXVC_L,4,2            ; @uPD98401_TXVC_L
	.comm	_uPD98401_TXVC_SHP_SHIFT,4,2    ; @uPD98401_TXVC_SHP_SHIFT
	.comm	_uPD98401_TXVC_VPI_SHIFT,4,2    ; @uPD98401_TXVC_VPI_SHIFT
	.no_dead_strip	_open_tx_second
.subsections_via_symbols
