	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function z8530_dma_rx
_z8530_dma_rx:                          ## @z8530_dma_rx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	_R7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_read_zsreg
	movq	_R6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_read_zsreg
	movq	_R1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_read_zsreg
	movq	_END_FR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_z8530_rx_done
LBB0_3:
	movq	_ERR_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_write_zsctrl
	movq	_RES_H_IUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_write_zsctrl                   ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_z8530_rx                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R7,4,2                         ## @R7
	.comm	_R6,4,2                         ## @R6
	.comm	_R1,4,2                         ## @R1
	.comm	_END_FR,4,2                     ## @END_FR
	.comm	_ERR_RES,4,2                    ## @ERR_RES
	.comm	_RES_H_IUS,4,2                  ## @RES_H_IUS
	.no_dead_strip	_z8530_dma_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function z8530_dma_rx
_z8530_dma_rx:                          ; @z8530_dma_rx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _R7@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R7@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_read_zsreg
Lloh3:
	adrp	x8, _R6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R6@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_read_zsreg
Lloh6:
	adrp	x8, _R1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_read_zsreg
Lloh9:
	adrp	x8, _END_FR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _END_FR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_z8530_rx_done
LBB0_3:
Lloh12:
	adrp	x8, _ERR_RES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_RES@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write_zsctrl
Lloh15:
	adrp	x8, _RES_H_IUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RES_H_IUS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_zsctrl
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_z8530_rx
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_R7,4,2                         ; @R7
	.comm	_R6,4,2                         ; @R6
	.comm	_R1,4,2                         ; @R1
	.comm	_END_FR,4,2                     ; @END_FR
	.comm	_ERR_RES,4,2                    ; @ERR_RES
	.comm	_RES_H_IUS,4,2                  ; @RES_H_IUS
	.no_dead_strip	_z8530_dma_rx
.subsections_via_symbols
