	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function z8530_status
_z8530_status:                          ## @z8530_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_R0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_read_zsreg
	movl	%eax, %ebx
	movl	(%r14), %r15d
	xorl	%eax, %r15d
	movl	%eax, (%r14)
	movq	_TxEOM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rax
	incl	(%rax)
	movq	_ERR_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_write_zsctrl
	movq	%r14, %rdi
	callq	_z8530_tx_done
LBB0_2:
	movl	4(%r14), %eax
	testl	%r15d, %eax
	je	LBB0_8
## %bb.3:
	movq	24(%r14), %rcx
	movl	(%rcx), %esi
	testl	%ebx, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_R3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	_RxENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	12(%rax), %edx
	movq	%r14, %rdi
	callq	_write_zsreg
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	callq	_netif_carrier_on
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	_R3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	_RxENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	12(%rax), %edx
	movq	%r14, %rdi
	callq	_write_zsreg
	movq	%r14, %rdi
	callq	_z8530_flush_fifo
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_netif_carrier_off
LBB0_8:
	movq	_RES_EXT_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_write_zsctrl
	movq	_RES_H_IUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_zsctrl                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R0,4,2                         ## @R0
	.comm	_TxEOM,4,2                      ## @TxEOM
	.comm	_ERR_RES,4,2                    ## @ERR_RES
	.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_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function z8530_status
_z8530_status:                          ; @z8530_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	w21, w8, w0
	str	w0, [x19]
Lloh3:
	adrp	x8, _TxEOM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TxEOM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh6:
	adrp	x8, _ERR_RES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_RES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write_zsctrl
	mov	x0, x19
	bl	_z8530_tx_done
LBB0_2:
	ldr	w8, [x19, #4]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.3:
	ldr	x9, [x19, #24]
	ldr	w1, [x9]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh11:
	adrp	x8, _R3@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R3@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #12]
Lloh14:
	adrp	x9, _RxENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RxENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_write_zsreg
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.5:
	bl	_netif_carrier_on
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
Lloh19:
	adrp	x8, _R3@GOTPAGE
Lloh20:
	ldr	x8, [x8, _R3@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #12]
Lloh22:
	adrp	x9, _RxENABLE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RxENABLE@GOTPAGEOFF]
Lloh24:
	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_8
; %bb.7:
	bl	_netif_carrier_off
LBB0_8:
Lloh25:
	adrp	x8, _RES_EXT_INT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RES_EXT_INT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write_zsctrl
Lloh28:
	adrp	x8, _RES_H_IUS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RES_H_IUS@GOTPAGEOFF]
Lloh30:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_R0,4,2                         ; @R0
	.comm	_TxEOM,4,2                      ; @TxEOM
	.comm	_ERR_RES,4,2                    ; @ERR_RES
	.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_status
.subsections_via_symbols
