	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_z8530_init
_do_z8530_init:                         ## @do_z8530_init
	.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, %r15
	leaq	24(%rdi), %r14
	movq	_z8530_nop@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rdi)
	movq	%rax, 16(%rdi)
	movq	_DCD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rdi)
	movq	%rax, 8(%rdi)
	movq	_R9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$192, %edx
	callq	_write_zsreg
	movl	$200, %edi
	callq	_udelay
	movq	_R12@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$170, %edx
	callq	_write_zsreg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_read_zsreg
	cmpl	$170, %eax
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$85, %edx
	callq	_write_zsreg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_read_zsreg
	cmpl	$85, %eax
	jne	LBB0_1
## %bb.3:
	movq	_Z8530@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_R15@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_write_zsreg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_read_zsreg
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.4:
	movq	_R8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_zsreg
	movq	_R0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_read_zsreg
	movq	_Tx_BUF_EMP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	_Z85C30@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_Z85230@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
LBB0_8:
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_zsreg
	movl	24(%r15), %edi
	movq	_reg_init@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$16, %edx
	callq	_memcpy
	movl	(%r15), %edi
	movl	(%r14), %esi
	movl	$16, %edx
	callq	_memcpy
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_z8530_nop,4,2                  ## @z8530_nop
	.comm	_DCD,8,3                        ## @DCD
	.comm	_R9,4,2                         ## @R9
	.comm	_R12,4,2                        ## @R12
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_Z8530,4,2                      ## @Z8530
	.comm	_R15,4,2                        ## @R15
	.comm	_R8,4,2                         ## @R8
	.comm	_R0,4,2                         ## @R0
	.comm	_Tx_BUF_EMP,4,2                 ## @Tx_BUF_EMP
	.comm	_Z85230,4,2                     ## @Z85230
	.comm	_Z85C30,4,2                     ## @Z85C30
	.comm	_reg_init,4,2                   ## @reg_init
	.no_dead_strip	_do_z8530_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_z8530_init
_do_z8530_init:                         ; @do_z8530_init
	.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
	add	x20, x0, #24
Lloh0:
	adrp	x8, _z8530_nop@GOTPAGE
Lloh1:
	ldr	x8, [x8, _z8530_nop@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DCD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DCD@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	stp	x9, x8, [x0, #32]
	stp	x9, x8, [x0, #8]
Lloh5:
	adrp	x8, _R9@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R9@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #192
	bl	_write_zsreg
	mov	w0, #200
	bl	_udelay
Lloh8:
	adrp	x21, _R12@GOTPAGE
Lloh9:
	ldr	x21, [x21, _R12@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #170
	bl	_write_zsreg
	ldr	w1, [x21]
	mov	x0, x20
	bl	_read_zsreg
	cmp	w0, #170
	b.ne	LBB0_5
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #85
	bl	_write_zsreg
	ldr	w1, [x21]
	mov	x0, x20
	bl	_read_zsreg
	cmp	w0, #85
	b.ne	LBB0_5
; %bb.2:
Lloh10:
	adrp	x8, _Z8530@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Z8530@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh13:
	adrp	x21, _R15@GOTPAGE
Lloh14:
	ldr	x21, [x21, _R15@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #1
	bl	_write_zsreg
	ldr	w1, [x21]
	mov	x0, x20
	bl	_read_zsreg
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _R8@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R8@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_write_zsreg
Lloh18:
	adrp	x8, _R0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R0@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_read_zsreg
Lloh21:
	adrp	x8, _Tx_BUF_EMP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Tx_BUF_EMP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _Z85C30@GOTPAGE
Lloh25:
	ldr	x9, [x9, _Z85C30@GOTPAGEOFF]
Lloh26:
	adrp	x10, _Z85230@GOTPAGE
Lloh27:
	ldr	x10, [x10, _Z85230@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #48]
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_write_zsreg
	ldr	w0, [x19, #24]
Lloh28:
	adrp	x20, _reg_init@GOTPAGE
Lloh29:
	ldr	x20, [x20, _reg_init@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #16
	bl	_memcpy
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	w2, #16
	bl	_memcpy
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_z8530_nop,4,2                  ; @z8530_nop
	.comm	_DCD,8,3                        ; @DCD
	.comm	_R9,4,2                         ; @R9
	.comm	_R12,4,2                        ; @R12
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_Z8530,4,2                      ; @Z8530
	.comm	_R15,4,2                        ; @R15
	.comm	_R8,4,2                         ; @R8
	.comm	_R0,4,2                         ; @R0
	.comm	_Tx_BUF_EMP,4,2                 ; @Tx_BUF_EMP
	.comm	_Z85230,4,2                     ; @Z85230
	.comm	_Z85C30,4,2                     ; @Z85C30
	.comm	_reg_init,4,2                   ; @reg_init
	.no_dead_strip	_do_z8530_init
.subsections_via_symbols
