	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function z8530_dma_status
_z8530_dma_status:                      ## @z8530_dma_status
	.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
	movq	_R0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_read_zsreg
	movl	%eax, %r14d
	movl	(%rbx), %r12d
	xorl	%eax, %r12d
	movl	%eax, (%rbx)
	cmpq	$0, 48(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_TxEOM@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_claim_dma_lock
	movq	%rax, %r15
	movl	40(%rbx), %edi
	callq	_disable_dma
	movl	40(%rbx), %edi
	callq	_clear_dma_ff
	movq	$0, 32(%rbx)
	movq	%r15, %rdi
	callq	_release_dma_lock
	movq	%rbx, %rdi
	callq	_z8530_tx_done
LBB0_3:
	movl	4(%rbx), %eax
	testl	%r12d, %eax
	je	LBB0_9
## %bb.4:
	movq	24(%rbx), %rcx
	movl	(%rcx), %esi
	testl	%r14d, %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_R3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	_RxENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	12(%rax), %edx
	movq	%rbx, %rdi
	callq	_write_zsreg
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:
	callq	_netif_carrier_on
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	_R3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	_RxENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	12(%rax), %edx
	movq	%rbx, %rdi
	callq	_write_zsreg
	movq	%rbx, %rdi
	callq	_z8530_flush_fifo
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_netif_carrier_off
LBB0_9:
	movq	_RES_EXT_INT@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
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_zsctrl                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R0,4,2                         ## @R0
	.comm	_TxEOM,4,2                      ## @TxEOM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: DCD raised\n"

	.comm	_R3,4,2                         ## @R3
	.comm	_RxENABLE,4,2                   ## @RxENABLE
L_.str.1:                               ## @.str.1
	.asciz	"%s: DCD lost\n"

	.comm	_RES_EXT_INT,4,2                ## @RES_EXT_INT
	.comm	_RES_H_IUS,4,2                  ## @RES_H_IUS
	.no_dead_strip	_z8530_dma_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function z8530_dma_status
_z8530_dma_status:                      ; @z8530_dma_status
	.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	x19, x0
Lloh0:
	adrp	x8, _R0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_read_zsreg
	mov	x20, x0
	ldr	w8, [x19]
	eor	w22, w8, w0
	str	w0, [x19]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _TxEOM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TxEOM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	bl	_claim_dma_lock
	mov	x21, x0
	ldr	w0, [x19, #40]
	bl	_disable_dma
	ldr	w0, [x19, #40]
	bl	_clear_dma_ff
	str	xzr, [x19, #32]
	mov	x0, x21
	bl	_release_dma_lock
	mov	x0, x19
	bl	_z8530_tx_done
LBB0_3:
	ldr	w8, [x19, #4]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.4:
	ldr	x9, [x19, #24]
	ldr	w1, [x9]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh8:
	adrp	x8, _R3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R3@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #12]
Lloh11:
	adrp	x9, _RxENABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RxENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_write_zsreg
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.6:
	bl	_netif_carrier_on
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
Lloh16:
	adrp	x8, _R3@GOTPAGE
Lloh17:
	ldr	x8, [x8, _R3@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #12]
Lloh19:
	adrp	x9, _RxENABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RxENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_write_zsreg
	mov	x0, x19
	bl	_z8530_flush_fifo
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_netif_carrier_off
LBB0_9:
Lloh22:
	adrp	x8, _RES_EXT_INT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RES_EXT_INT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write_zsctrl
Lloh25:
	adrp	x8, _RES_H_IUS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RES_H_IUS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_write_zsctrl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_R0,4,2                         ; @R0
	.comm	_TxEOM,4,2                      ; @TxEOM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: DCD raised\n"

	.comm	_R3,4,2                         ; @R3
	.comm	_RxENABLE,4,2                   ; @RxENABLE
l_.str.1:                               ; @.str.1
	.asciz	"%s: DCD lost\n"

	.comm	_RES_EXT_INT,4,2                ; @RES_EXT_INT
	.comm	_RES_H_IUS,4,2                  ; @RES_H_IUS
	.no_dead_strip	_z8530_dma_status
.subsections_via_symbols
