	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgs8gl5_get_frontend
_lgs8gl5_get_frontend:                  ## @lgs8gl5_get_frontend
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	movq	_REG_INVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lgs8gl5_read_reg
	movq	_REG_INVERSION_ON@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_INVERSION_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_INVERSION_ON@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_FEC_1_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_FEC_7_8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_GUARD_INTERVAL_1_32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_TRANSMISSION_MODE_2K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_QAM_64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_HIERARCHY_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$8000000, (%rbx)                ## imm = 0x7A1200
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_INVERSION,4,2              ## @REG_INVERSION
	.comm	_REG_INVERSION_ON,4,2           ## @REG_INVERSION_ON
	.comm	_INVERSION_ON,4,2               ## @INVERSION_ON
	.comm	_INVERSION_OFF,4,2              ## @INVERSION_OFF
	.comm	_FEC_1_2,4,2                    ## @FEC_1_2
	.comm	_FEC_7_8,4,2                    ## @FEC_7_8
	.comm	_GUARD_INTERVAL_1_32,4,2        ## @GUARD_INTERVAL_1_32
	.comm	_TRANSMISSION_MODE_2K,4,2       ## @TRANSMISSION_MODE_2K
	.comm	_QAM_64,4,2                     ## @QAM_64
	.comm	_HIERARCHY_NONE,4,2             ## @HIERARCHY_NONE
	.no_dead_strip	_lgs8gl5_get_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgs8gl5_get_frontend
_lgs8gl5_get_frontend:                  ; @lgs8gl5_get_frontend
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _REG_INVERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_INVERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_lgs8gl5_read_reg
Lloh3:
	adrp	x8, _REG_INVERSION_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_INVERSION_ON@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _INVERSION_ON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INVERSION_ON@GOTPAGEOFF]
Lloh8:
	adrp	x10, _INVERSION_OFF@GOTPAGE
Lloh9:
	ldr	x10, [x10, _INVERSION_OFF@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _FEC_1_2@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FEC_1_2@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh13:
	adrp	x8, _FEC_7_8@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FEC_7_8@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _GUARD_INTERVAL_1_32@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GUARD_INTERVAL_1_32@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh19:
	adrp	x8, _TRANSMISSION_MODE_2K@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRANSMISSION_MODE_2K@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _QAM_64@GOTPAGE
Lloh23:
	ldr	x9, [x9, _QAM_64@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _HIERARCHY_NONE@GOTPAGE
Lloh26:
	ldr	x10, [x10, _HIERARCHY_NONE@GOTPAGEOFF]
	stp	w9, w8, [x19, #8]
Lloh27:
	ldr	w8, [x10]
	mov	w9, #4608
	movk	w9, #122, lsl #16
	stp	w9, w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_INVERSION,4,2              ; @REG_INVERSION
	.comm	_REG_INVERSION_ON,4,2           ; @REG_INVERSION_ON
	.comm	_INVERSION_ON,4,2               ; @INVERSION_ON
	.comm	_INVERSION_OFF,4,2              ; @INVERSION_OFF
	.comm	_FEC_1_2,4,2                    ; @FEC_1_2
	.comm	_FEC_7_8,4,2                    ; @FEC_7_8
	.comm	_GUARD_INTERVAL_1_32,4,2        ; @GUARD_INTERVAL_1_32
	.comm	_TRANSMISSION_MODE_2K,4,2       ; @TRANSMISSION_MODE_2K
	.comm	_QAM_64,4,2                     ; @QAM_64
	.comm	_HIERARCHY_NONE,4,2             ; @HIERARCHY_NONE
	.no_dead_strip	_lgs8gl5_get_frontend
.subsections_via_symbols
