	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xadc_zynq_write_adc_reg
_xadc_zynq_write_adc_reg:               ## @xadc_zynq_write_adc_reg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	_XADC_ZYNQ_INT_DFIFO_GTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%edx, %esi
	callq	_xadc_zynq_update_intmsk
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	_XADC_ZYNQ_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_XADC_ZYNQ_CMD
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_xadc_zynq_write_fifo
	movq	_XADC_ZYNQ_REG_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_xadc_read_reg
	movq	_XADC_ZYNQ_CFG_DFIFOTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_xadc_write_reg
	movq	_XADC_ZYNQ_INT_DFIFO_GTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_xadc_zynq_update_intmsk
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wait_for_completion_interruptible_timeout
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovnel	%r12d, %ebx
	movq	_XADC_ZYNQ_REG_DFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_xadc_read_reg
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XADC_ZYNQ_INT_DFIFO_GTH,4,2    ## @XADC_ZYNQ_INT_DFIFO_GTH
	.comm	_XADC_ZYNQ_CMD_WRITE,4,2        ## @XADC_ZYNQ_CMD_WRITE
	.comm	_XADC_ZYNQ_REG_CFG,4,2          ## @XADC_ZYNQ_REG_CFG
	.comm	_XADC_ZYNQ_CFG_DFIFOTH_MASK,4,2 ## @XADC_ZYNQ_CFG_DFIFOTH_MASK
	.comm	_XADC_ZYNQ_CFG_DFIFOTH_OFFSET,4,2 ## @XADC_ZYNQ_CFG_DFIFOTH_OFFSET
	.comm	_HZ,4,2                         ## @HZ
	.comm	_EIO,4,2                        ## @EIO
	.comm	_XADC_ZYNQ_REG_DFIFO,4,2        ## @XADC_ZYNQ_REG_DFIFO
	.no_dead_strip	_xadc_zynq_write_adc_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xadc_zynq_write_adc_reg
_xadc_zynq_write_adc_reg:               ; @xadc_zynq_write_adc_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irq
Lloh0:
	adrp	x23, _XADC_ZYNQ_INT_DFIFO_GTH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XADC_ZYNQ_INT_DFIFO_GTH@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x1
	bl	_xadc_zynq_update_intmsk
	mov	x0, x19
	bl	_reinit_completion
Lloh2:
	adrp	x8, _XADC_ZYNQ_CMD_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XADC_ZYNQ_CMD_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x21
	bl	_XADC_ZYNQ_CMD
	str	w0, [sp, #12]
	add	x0, sp, #12
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_xadc_zynq_write_fifo
Lloh5:
	adrp	x21, _XADC_ZYNQ_REG_CFG@GOTPAGE
Lloh6:
	ldr	x21, [x21, _XADC_ZYNQ_REG_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_xadc_read_reg
Lloh7:
	adrp	x8, _XADC_ZYNQ_CFG_DFIFOTH_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XADC_ZYNQ_CFG_DFIFOTH_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	bic	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_xadc_write_reg
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_xadc_zynq_update_intmsk
	mov	x0, x20
	bl	_spin_unlock_irq
Lloh10:
	adrp	x8, _HZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wait_for_completion_interruptible_timeout
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w20, wzr, w8, ne
Lloh16:
	adrp	x8, _XADC_ZYNQ_REG_DFIFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XADC_ZYNQ_REG_DFIFO@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_xadc_read_reg
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XADC_ZYNQ_INT_DFIFO_GTH,4,2    ; @XADC_ZYNQ_INT_DFIFO_GTH
	.comm	_XADC_ZYNQ_CMD_WRITE,4,2        ; @XADC_ZYNQ_CMD_WRITE
	.comm	_XADC_ZYNQ_REG_CFG,4,2          ; @XADC_ZYNQ_REG_CFG
	.comm	_XADC_ZYNQ_CFG_DFIFOTH_MASK,4,2 ; @XADC_ZYNQ_CFG_DFIFOTH_MASK
	.comm	_XADC_ZYNQ_CFG_DFIFOTH_OFFSET,4,2 ; @XADC_ZYNQ_CFG_DFIFOTH_OFFSET
	.comm	_HZ,4,2                         ; @HZ
	.comm	_EIO,4,2                        ; @EIO
	.comm	_XADC_ZYNQ_REG_DFIFO,4,2        ; @XADC_ZYNQ_REG_DFIFO
	.no_dead_strip	_xadc_zynq_write_adc_reg
.subsections_via_symbols
