	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa1100_irda_txdma_irq
_sa1100_irda_txdma_irq:                 ## @sa1100_irda_txdma_irq
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movq	16(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%r12)
	movq	_Ser2HSSR0@GOTPCREL(%rip), %r13
	movq	_HSSR0_TUR@GOTPCREL(%rip), %rbx
	movq	_Ser2HSSR1@GOTPCREL(%rip), %r14
	movq	_HSSR1_TBY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rmb
	movl	(%rbx), %eax
	movl	(%r15), %ecx
	andl	(%r14), %ecx
	testl	%eax, (%r13)
	je	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_1
## %bb.3:
	movl	%eax, (%r13)
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_sa1100_irda_set_speed
	movq	$0, 8(%r12)
LBB0_5:
	movq	%r12, %rdi
	callq	_sa1100_irda_rx_dma_start
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movq	(%rbx), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	incl	4(%r14)
	movl	(%rbx), %eax
	addl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_irq
LBB0_7:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Ser2HSSR0,4,2                  ## @Ser2HSSR0
	.comm	_HSSR0_TUR,4,2                  ## @HSSR0_TUR
	.comm	_Ser2HSSR1,4,2                  ## @Ser2HSSR1
	.comm	_HSSR1_TBY,4,2                  ## @HSSR1_TBY
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_sa1100_irda_txdma_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa1100_irda_txdma_irq
_sa1100_irda_txdma_irq:                 ; @sa1100_irda_txdma_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_netdev_priv
	mov	x21, x0
	ldr	x20, [x0, #16]
	str	xzr, [x0, #16]
Lloh0:
	adrp	x22, _Ser2HSSR0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Ser2HSSR0@GOTPAGEOFF]
Lloh2:
	adrp	x23, _HSSR0_TUR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HSSR0_TUR@GOTPAGEOFF]
Lloh4:
	adrp	x24, _Ser2HSSR1@GOTPAGE
Lloh5:
	ldr	x24, [x24, _Ser2HSSR1@GOTPAGEOFF]
Lloh6:
	adrp	x25, _HSSR1_TBY@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HSSR1_TBY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rmb
	ldr	w9, [x22]
	ldr	w8, [x23]
	and	w9, w8, w9
	ldr	w10, [x24]
	ldr	w11, [x25]
	and	w10, w11, w10
	cmp	w9, #0
	ccmp	w10, #0, #0, ne
	b.ne	LBB0_1
; %bb.2:
	str	w8, [x22]
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_sa1100_irda_set_speed
	str	xzr, [x21, #8]
LBB0_4:
	mov	x0, x21
	bl	_sa1100_irda_rx_dma_start
	cbz	x20, LBB0_6
; %bb.5:
	ldp	w1, w0, [x21]
	ldr	x2, [x20]
Lloh8:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x20]
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x20
	bl	_dev_kfree_skb_irq
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_netif_wake_queue
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_Ser2HSSR0,4,2                  ; @Ser2HSSR0
	.comm	_HSSR0_TUR,4,2                  ; @HSSR0_TUR
	.comm	_Ser2HSSR1,4,2                  ; @Ser2HSSR1
	.comm	_HSSR1_TBY,4,2                  ; @HSSR1_TBY
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_sa1100_irda_txdma_irq
.subsections_via_symbols
