	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_nfc_queue_rb
_meson_nfc_queue_rb:                    ## @meson_nfc_queue_rb
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	20(%rdi), %esi
	callq	_meson_nfc_cmd_idle
	movq	%rbx, %rdi
	callq	_meson_nfc_drain_cmd
	movq	_CMD_FIFO_EMPTY_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_meson_nfc_wait_cmd_finish
	movq	_NFC_REG_CFG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_NFC_RB_IRQ_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_reinit_completion
	movq	_NFC_CMD_RB@GOTPCREL(%rip), %rax
	movq	_NFC_CMD_RB_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	orl	24(%rbx), %edi
	orl	16(%rbx), %edi
	movq	_NFC_REG_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	%r14d, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sbbl	%ecx, %ecx
	orl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_FIFO_EMPTY_TIMEOUT,4,2     ## @CMD_FIFO_EMPTY_TIMEOUT
	.comm	_NFC_REG_CFG,8,3                ## @NFC_REG_CFG
	.comm	_NFC_RB_IRQ_EN,4,2              ## @NFC_RB_IRQ_EN
	.comm	_NFC_CMD_RB,4,2                 ## @NFC_CMD_RB
	.comm	_NFC_CMD_RB_INT,4,2             ## @NFC_CMD_RB_INT
	.comm	_NFC_REG_CMD,8,3                ## @NFC_REG_CMD
	.no_dead_strip	_meson_nfc_queue_rb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_nfc_queue_rb
_meson_nfc_queue_rb:                    ; @meson_nfc_queue_rb
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x0, #20]
	bl	_meson_nfc_cmd_idle
	mov	x0, x19
	bl	_meson_nfc_drain_cmd
Lloh0:
	adrp	x8, _CMD_FIFO_EMPTY_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_FIFO_EMPTY_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_meson_nfc_wait_cmd_finish
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x21, _NFC_REG_CFG@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NFC_REG_CFG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _NFC_RB_IRQ_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NFC_RB_IRQ_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_reinit_completion
Lloh8:
	adrp	x8, _NFC_CMD_RB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NFC_CMD_RB@GOTPAGEOFF]
Lloh10:
	adrp	x9, _NFC_CMD_RB_INT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NFC_CMD_RB_INT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #24]
	orr	w8, w8, w9
	ldr	w9, [x19, #16]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _NFC_REG_CMD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NFC_REG_CMD@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_wait_for_completion_timeout
	cmp	w0, #0
	csinv	w0, w0, wzr, ne
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_FIFO_EMPTY_TIMEOUT,4,2     ; @CMD_FIFO_EMPTY_TIMEOUT
	.comm	_NFC_REG_CFG,8,3                ; @NFC_REG_CFG
	.comm	_NFC_RB_IRQ_EN,4,2              ; @NFC_RB_IRQ_EN
	.comm	_NFC_CMD_RB,4,2                 ; @NFC_CMD_RB
	.comm	_NFC_CMD_RB_INT,4,2             ; @NFC_CMD_RB_INT
	.comm	_NFC_REG_CMD,8,3                ; @NFC_REG_CMD
	.no_dead_strip	_meson_nfc_queue_rb
.subsections_via_symbols
