	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_gxl_read_reg
_meson_gxl_read_reg:                    ## @meson_gxl_read_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, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_meson_gxl_open_banks
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_TSTCNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_TSTCNTL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_TSTCNTL_REG_BANK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	_TSTCNTL_TEST_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_TSTCNTL_READ_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_phy_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_TSTREAD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_read
	movl	%eax, %ebx
LBB0_3:
	movq	%r12, %rdi
	callq	_meson_gxl_close_banks
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSTCNTL,4,2                    ## @TSTCNTL
	.comm	_TSTCNTL_READ,4,2               ## @TSTCNTL_READ
	.comm	_TSTCNTL_REG_BANK_SEL,4,2       ## @TSTCNTL_REG_BANK_SEL
	.comm	_TSTCNTL_TEST_MODE,4,2          ## @TSTCNTL_TEST_MODE
	.comm	_TSTCNTL_READ_ADDRESS,4,2       ## @TSTCNTL_READ_ADDRESS
	.comm	_TSTREAD1,4,2                   ## @TSTREAD1
	.no_dead_strip	_meson_gxl_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_gxl_read_reg
_meson_gxl_read_reg:                    ; @meson_gxl_read_reg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_meson_gxl_open_banks
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _TSTCNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TSTCNTL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _TSTCNTL_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TSTCNTL_READ@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _TSTCNTL_REG_BANK_SEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TSTCNTL_REG_BANK_SEL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_PREP
Lloh9:
	adrp	x8, _TSTCNTL_TEST_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TSTCNTL_TEST_MODE@GOTPAGEOFF]
	orr	w9, w0, w23
Lloh11:
	ldr	w8, [x8]
	orr	w21, w9, w8
Lloh12:
	adrp	x8, _TSTCNTL_READ_ADDRESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TSTCNTL_READ_ADDRESS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_PREP
	orr	w2, w21, w0
	mov	x0, x19
	mov	x1, x22
	bl	_phy_write
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _TSTREAD1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TSTREAD1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x22, x0
LBB0_3:
	mov	x0, x19
	bl	_meson_gxl_close_banks
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TSTCNTL,4,2                    ; @TSTCNTL
	.comm	_TSTCNTL_READ,4,2               ; @TSTCNTL_READ
	.comm	_TSTCNTL_REG_BANK_SEL,4,2       ; @TSTCNTL_REG_BANK_SEL
	.comm	_TSTCNTL_TEST_MODE,4,2          ; @TSTCNTL_TEST_MODE
	.comm	_TSTCNTL_READ_ADDRESS,4,2       ; @TSTCNTL_READ_ADDRESS
	.comm	_TSTREAD1,4,2                   ; @TSTREAD1
	.no_dead_strip	_meson_gxl_read_reg
.subsections_via_symbols
