	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvt_tx_ir
_nvt_tx_ir:                             ## @nvt_tx_ir
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	(%rdi), %rbx
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_TX_BUF_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	%r12, %r14
	cmovaq	%r12, %r14
	movq	%r14, (%rbx)
	movl	32(%rbx), %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	$0, 24(%rbx)
	movq	_CIR_IREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_nvt_cir_reg_read
	movl	%eax, %r12d
	movq	_CIR_IREN_TFU@GOTPCREL(%rip), %rax
	movq	_CIR_IREN_TTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_nvt_cir_reg_write
	movq	_ST_TX_REPLY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_CIR_FIFOCON_TX_TRIGGER_LEV_8@GOTPCREL(%rip), %rax
	movq	_CIR_FIFOCON_RXFIFOCLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_CIR_FIFOCON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nvt_cir_reg_write
	movq	_CIR_STXFIFO@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvt_cir_reg_write
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	20(%rbx), %edi
	movq	8(%rbx), %rax
	movq	_ST_TX_REQUEST@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	callq	_wait_event
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_ST_TX_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_CIR_IREN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_nvt_cir_reg_write
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BUF_LEN,8,3                 ## @TX_BUF_LEN
	.comm	_CIR_IREN,4,2                   ## @CIR_IREN
	.comm	_CIR_IREN_TFU,4,2               ## @CIR_IREN_TFU
	.comm	_CIR_IREN_TTR,4,2               ## @CIR_IREN_TTR
	.comm	_ST_TX_REPLY,8,3                ## @ST_TX_REPLY
	.comm	_CIR_FIFOCON_TX_TRIGGER_LEV_8,4,2 ## @CIR_FIFOCON_TX_TRIGGER_LEV_8
	.comm	_CIR_FIFOCON_RXFIFOCLR,4,2      ## @CIR_FIFOCON_RXFIFOCLR
	.comm	_CIR_FIFOCON,4,2                ## @CIR_FIFOCON
	.comm	_CIR_STXFIFO,4,2                ## @CIR_STXFIFO
	.comm	_ST_TX_REQUEST,8,3              ## @ST_TX_REQUEST
	.comm	_ST_TX_NONE,8,3                 ## @ST_TX_NONE
	.no_dead_strip	_nvt_tx_ir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvt_tx_ir
_nvt_tx_ir:                             ; @nvt_tx_ir
	.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	x20, x2
	mov	x22, x1
	ldr	x19, [x0]
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _TX_BUF_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_BUF_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	csel	x20, x20, x8, hi
	str	x20, [x19]
	ldr	w0, [x19, #32]
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	str	xzr, [x19, #24]
Lloh3:
	adrp	x23, _CIR_IREN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CIR_IREN@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_nvt_cir_reg_read
	mov	x22, x0
Lloh5:
	adrp	x8, _CIR_IREN_TFU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CIR_IREN_TFU@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _CIR_IREN_TTR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CIR_IREN_TTR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [x23]
	mov	x0, x19
	bl	_nvt_cir_reg_write
Lloh11:
	adrp	x8, _ST_TX_REPLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ST_TX_REPLY@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh14:
	adrp	x8, _CIR_FIFOCON_TX_TRIGGER_LEV_8@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CIR_FIFOCON_TX_TRIGGER_LEV_8@GOTPAGEOFF]
Lloh16:
	adrp	x9, _CIR_FIFOCON_RXFIFOCLR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CIR_FIFOCON_RXFIFOCLR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh20:
	adrp	x8, _CIR_FIFOCON@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CIR_FIFOCON@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nvt_cir_reg_write
Lloh23:
	adrp	x24, _CIR_STXFIFO@GOTPAGE
Lloh24:
	ldr	x24, [x24, _CIR_STXFIFO@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_nvt_cir_reg_write
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_nvt_cir_reg_write
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_nvt_cir_reg_write
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_nvt_cir_reg_write
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_nvt_cir_reg_write
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_nvt_cir_reg_write
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_nvt_cir_reg_write
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_nvt_cir_reg_write
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_nvt_cir_reg_write
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #20]
	ldr	x8, [x19, #8]
Lloh25:
	adrp	x9, _ST_TX_REQUEST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ST_TX_REQUEST@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, eq
	bl	_wait_event
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh28:
	adrp	x8, _ST_TX_NONE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ST_TX_NONE@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	_nvt_cir_reg_write
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BUF_LEN,8,3                 ; @TX_BUF_LEN
	.comm	_CIR_IREN,4,2                   ; @CIR_IREN
	.comm	_CIR_IREN_TFU,4,2               ; @CIR_IREN_TFU
	.comm	_CIR_IREN_TTR,4,2               ; @CIR_IREN_TTR
	.comm	_ST_TX_REPLY,8,3                ; @ST_TX_REPLY
	.comm	_CIR_FIFOCON_TX_TRIGGER_LEV_8,4,2 ; @CIR_FIFOCON_TX_TRIGGER_LEV_8
	.comm	_CIR_FIFOCON_RXFIFOCLR,4,2      ; @CIR_FIFOCON_RXFIFOCLR
	.comm	_CIR_FIFOCON,4,2                ; @CIR_FIFOCON
	.comm	_CIR_STXFIFO,4,2                ; @CIR_STXFIFO
	.comm	_ST_TX_REQUEST,8,3              ; @ST_TX_REQUEST
	.comm	_ST_TX_NONE,8,3                 ; @ST_TX_NONE
	.no_dead_strip	_nvt_tx_ir
.subsections_via_symbols
