	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_tx_settings
_read_tx_settings:                      ## @read_tx_settings
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	_TX_SETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GENERAL_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	callq	_read_8051_config
	movl	-36(%rbp), %edx
	movq	_ENABLE_LANE_TX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %esi
	sarl	%cl, %esi
	movq	_ENABLE_LANE_TX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movl	%esi, (%rbx)
	movq	_TX_POLARITY_INVERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %esi
	sarl	%cl, %esi
	movq	_TX_POLARITY_INVERSION_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movl	%esi, (%r12)
	movq	_RX_POLARITY_INVERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %esi
	sarl	%cl, %esi
	movq	_RX_POLARITY_INVERSION_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movl	%esi, (%r15)
	movq	_MAX_RATE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_MAX_RATE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	%edx, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_SETTINGS,4,2                ## @TX_SETTINGS
	.comm	_GENERAL_CONFIG,4,2             ## @GENERAL_CONFIG
	.comm	_ENABLE_LANE_TX_SHIFT,4,2       ## @ENABLE_LANE_TX_SHIFT
	.comm	_ENABLE_LANE_TX_MASK,4,2        ## @ENABLE_LANE_TX_MASK
	.comm	_TX_POLARITY_INVERSION_SHIFT,4,2 ## @TX_POLARITY_INVERSION_SHIFT
	.comm	_TX_POLARITY_INVERSION_MASK,4,2 ## @TX_POLARITY_INVERSION_MASK
	.comm	_RX_POLARITY_INVERSION_SHIFT,4,2 ## @RX_POLARITY_INVERSION_SHIFT
	.comm	_RX_POLARITY_INVERSION_MASK,4,2 ## @RX_POLARITY_INVERSION_MASK
	.comm	_MAX_RATE_SHIFT,4,2             ## @MAX_RATE_SHIFT
	.comm	_MAX_RATE_MASK,4,2              ## @MAX_RATE_MASK
	.no_dead_strip	_read_tx_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_tx_settings
_read_tx_settings:                      ; @read_tx_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _TX_SETTINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_SETTINGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _GENERAL_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GENERAL_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_read_8051_config
Lloh6:
	adrp	x8, _ENABLE_LANE_TX_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENABLE_LANE_TX_SHIFT@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh8:
	ldr	w8, [x8]
	asr	w8, w9, w8
Lloh9:
	adrp	x10, _ENABLE_LANE_TX_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ENABLE_LANE_TX_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	and	w8, w8, w10
	str	w8, [x22]
Lloh12:
	adrp	x8, _TX_POLARITY_INVERSION_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_POLARITY_INVERSION_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	asr	w8, w9, w8
Lloh15:
	adrp	x10, _TX_POLARITY_INVERSION_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TX_POLARITY_INVERSION_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w8, w8, w10
Lloh18:
	adrp	x10, _RX_POLARITY_INVERSION_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RX_POLARITY_INVERSION_SHIFT@GOTPAGEOFF]
	str	w8, [x21]
Lloh20:
	ldr	w8, [x10]
	asr	w8, w9, w8
Lloh21:
	adrp	x10, _RX_POLARITY_INVERSION_MASK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RX_POLARITY_INVERSION_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	and	w8, w8, w10
	str	w8, [x20]
Lloh24:
	adrp	x8, _MAX_RATE_SHIFT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX_RATE_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	asr	w8, w9, w8
Lloh27:
	adrp	x9, _MAX_RATE_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MAX_RATE_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	and	w8, w8, w9
	str	w8, [x19]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_SETTINGS,4,2                ; @TX_SETTINGS
	.comm	_GENERAL_CONFIG,4,2             ; @GENERAL_CONFIG
	.comm	_ENABLE_LANE_TX_SHIFT,4,2       ; @ENABLE_LANE_TX_SHIFT
	.comm	_ENABLE_LANE_TX_MASK,4,2        ; @ENABLE_LANE_TX_MASK
	.comm	_TX_POLARITY_INVERSION_SHIFT,4,2 ; @TX_POLARITY_INVERSION_SHIFT
	.comm	_TX_POLARITY_INVERSION_MASK,4,2 ; @TX_POLARITY_INVERSION_MASK
	.comm	_RX_POLARITY_INVERSION_SHIFT,4,2 ; @RX_POLARITY_INVERSION_SHIFT
	.comm	_RX_POLARITY_INVERSION_MASK,4,2 ; @RX_POLARITY_INVERSION_MASK
	.comm	_MAX_RATE_SHIFT,4,2             ; @MAX_RATE_SHIFT
	.comm	_MAX_RATE_MASK,4,2              ; @MAX_RATE_MASK
	.no_dead_strip	_read_tx_settings
.subsections_via_symbols
