	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts73xx_fpga_write_complete
_ts73xx_fpga_write_complete:            ## @ts73xx_fpga_write_complete
	.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), %rbx
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	_TS73XX_FPGA_CONFIG_REG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readb
	movq	_TS73XX_FPGA_CONFIG_LOAD@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writeb
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readb
	movl	(%r15), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writeb
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readb
	movq	_TS73XX_FPGA_LOAD_OK@GOTPCREL(%rip), %rcx
	notl	%eax
	andl	(%rcx), %eax
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testl	%eax, %eax
	cmovnel	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TS73XX_FPGA_CONFIG_REG,8,3     ## @TS73XX_FPGA_CONFIG_REG
	.comm	_TS73XX_FPGA_CONFIG_LOAD,4,2    ## @TS73XX_FPGA_CONFIG_LOAD
	.comm	_TS73XX_FPGA_LOAD_OK,4,2        ## @TS73XX_FPGA_LOAD_OK
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_ts73xx_fpga_write_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts73xx_fpga_write_complete
_ts73xx_fpga_write_complete:            ; @ts73xx_fpga_write_complete
	.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
	ldr	x19, [x0]
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _TS73XX_FPGA_CONFIG_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TS73XX_FPGA_CONFIG_REG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
Lloh2:
	adrp	x21, _TS73XX_FPGA_CONFIG_LOAD@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TS73XX_FPGA_CONFIG_LOAD@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeb
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
	ldr	w8, [x21]
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeb
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
Lloh4:
	adrp	x8, _TS73XX_FPGA_LOAD_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TS73XX_FPGA_LOAD_OK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bics	wzr, w8, w0
	csneg	w0, wzr, w9, eq
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TS73XX_FPGA_CONFIG_REG,8,3     ; @TS73XX_FPGA_CONFIG_REG
	.comm	_TS73XX_FPGA_CONFIG_LOAD,4,2    ; @TS73XX_FPGA_CONFIG_LOAD
	.comm	_TS73XX_FPGA_LOAD_OK,4,2        ; @TS73XX_FPGA_LOAD_OK
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_ts73xx_fpga_write_complete
.subsections_via_symbols
