	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl111sf_read_reg              ## -- Begin function mxl111sf_read_reg
	.p2align	4, 0x90
_mxl111sf_read_reg:                     ## @mxl111sf_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	%rsi, -56(%rbp)
	movq	_MXL_CMD_REG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %r8
	movl	$1, %ecx
	movl	$2, %r9d
	callq	_mxl111sf_ctrl_msg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_mxl_debug
	jmp	LBB0_6
LBB0_2:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rcx
	movq	-56(%rbp), %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_4
## %bb.3:
	movq	%rcx, (%r14)
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %rdx
	movq	-40(%rbp), %rcx
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_pr_debug
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MXL_CMD_REG_READ,4,2           ## @MXL_CMD_REG_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading reg: 0x%02x"

L_.str.1:                               ## @.str.1
	.asciz	"invalid response reading reg: 0x%02x != 0x%02x, 0x%02x"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"R: (0x%02x, 0x%02x)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl111sf_read_reg              ; -- Begin function mxl111sf_read_reg
	.p2align	2
_mxl111sf_read_reg:                     ; @mxl111sf_read_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	x1, [sp]
Lloh3:
	adrp	x8, _MXL_CMD_REG_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MXL_CMD_REG_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	add	x4, sp, #8
	mov	w3, #1
	mov	w5, #2
	bl	_mxl111sf_ctrl_msg
	mov	x19, x0
	bl	_mxl_fail
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x1, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_debug
	b	LBB0_6
LBB0_2:
	ldp	x1, x2, [sp]
	ldr	x3, [sp, #16]
	cmp	x2, x1
	b.ne	LBB0_4
; %bb.3:
	str	x3, [x20]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
	ldr	x2, [sp]
	ldr	x3, [sp, #16]
LBB0_5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x2
	mov	x2, x3
	bl	_pr_debug
LBB0_6:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MXL_CMD_REG_READ,4,2           ; @MXL_CMD_REG_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading reg: 0x%02x"

l_.str.1:                               ; @.str.1
	.asciz	"invalid response reading reg: 0x%02x != 0x%02x, 0x%02x"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"R: (0x%02x, 0x%02x)\n"

.subsections_via_symbols
