	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_arl_rw_op
_b53_arl_rw_op:                         ## @b53_arl_rw_op
	.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
	movq	_ARLTBL_RW@GOTPCREL(%rip), %r15
	cmpl	%esi, (%r15)
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_B53_ARLIO_PAGE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_B53_ARLTBL_RW_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%rbp), %rcx
	callq	_b53_read8
	movq	_ARLTBL_START_DONE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx
	orl	(%rax), %ecx
	movl	(%r15), %eax
	movl	%eax, %edx
	notl	%edx
	andl	%ecx, %edx
	orl	%eax, %ecx
	testl	%ebx, %ebx
	cmovel	%edx, %ecx
	movl	%ecx, -44(%rbp)
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_b53_write8
	movq	%r14, %rdi
	callq	_b53_arl_op_wait
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARLTBL_RW,4,2                  ## @ARLTBL_RW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_B53_ARLIO_PAGE,4,2             ## @B53_ARLIO_PAGE
	.comm	_B53_ARLTBL_RW_CTRL,4,2         ## @B53_ARLTBL_RW_CTRL
	.comm	_ARLTBL_START_DONE,4,2          ## @ARLTBL_START_DONE
	.no_dead_strip	_b53_arl_rw_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_arl_rw_op
_b53_arl_rw_op:                         ; @b53_arl_rw_op
	.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
Lloh0:
	adrp	x21, _ARLTBL_RW@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ARLTBL_RW@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w1
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh5:
	adrp	x22, _B53_ARLIO_PAGE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _B53_ARLIO_PAGE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x23, _B53_ARLTBL_RW_CTRL@GOTPAGE
Lloh8:
	ldr	x23, [x23, _B53_ARLTBL_RW_CTRL@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #12
	bl	_b53_read8
Lloh9:
	adrp	x8, _ARLTBL_START_DONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARLTBL_START_DONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	ldr	w9, [x21]
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	w20, #0
	csel	w3, w10, w8, eq
	str	w3, [sp, #12]
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_b53_write8
	mov	x0, x19
	bl	_b53_arl_op_wait
LBB0_3:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ARLTBL_RW,4,2                  ; @ARLTBL_RW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_B53_ARLIO_PAGE,4,2             ; @B53_ARLIO_PAGE
	.comm	_B53_ARLTBL_RW_CTRL,4,2         ; @B53_ARLTBL_RW_CTRL
	.comm	_ARLTBL_START_DONE,4,2          ; @ARLTBL_START_DONE
	.no_dead_strip	_b53_arl_rw_op
.subsections_via_symbols
