	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp8psk_power_ctrl
_gp8psk_power_ctrl:                     ## @gp8psk_power_ctrl
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.1:
	movq	_GET_8PSK_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_gp8psk_usb_in_op
	movq	_bm8pskStarted@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -40(%rbp)
	je	LBB0_12
LBB0_2:
	movq	_USB_PID_GENPIX_8PSK_REV_1_WARM@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r14d
	jne	LBB0_4
## %bb.3:
	movq	_bm8pskFW_Loaded@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -40(%rbp)
	je	LBB0_18
LBB0_4:
	movq	_bmIntersilOn@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -40(%rbp)
	je	LBB0_16
LBB0_5:
	cmpl	(%r12), %r14d
	jne	LBB0_7
## %bb.6:
	movq	_SET_DVB_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gp8psk_usb_out_op
	testq	%rax, %rax
	jne	LBB0_17
LBB0_7:
	movq	_ARM_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gp8psk_usb_out_op
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_21
LBB0_8:
	movq	_START_INTERSIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_gp8psk_usb_in_op
	testq	%rax, %rax
	jne	LBB0_17
## %bb.9:
	movq	_BOOT_8PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_gp8psk_usb_in_op
	testq	%rax, %rax
	jne	LBB0_17
## %bb.10:
	movq	_USB_PID_GENPIX_SKYWALKER_CW3K@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_21
## %bb.11:
	movq	_CW3K_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gp8psk_usb_out_op
	jmp	LBB0_21
LBB0_12:
	movq	_USB_PID_GENPIX_SKYWALKER_CW3K@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_14
## %bb.13:
	movq	_CW3K_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gp8psk_usb_out_op
LBB0_14:
	movq	_BOOT_8PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r8
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_gp8psk_usb_in_op
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	%r15, %rdi
	callq	_gp8psk_info
	jmp	LBB0_2
LBB0_16:
	movq	_START_INTERSIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r8
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_gp8psk_usb_in_op
	testq	%rax, %rax
	je	LBB0_5
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	%r15, %rdi
	callq	_gp8psk_load_bcm4500fw
	testq	%rax, %rax
	je	LBB0_4
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_20:
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GET_8PSK_CONFIG,4,2            ## @GET_8PSK_CONFIG
	.comm	_bm8pskStarted,4,2              ## @bm8pskStarted
	.comm	_USB_PID_GENPIX_SKYWALKER_CW3K,4,2 ## @USB_PID_GENPIX_SKYWALKER_CW3K
	.comm	_CW3K_INIT,4,2                  ## @CW3K_INIT
	.comm	_BOOT_8PSK,4,2                  ## @BOOT_8PSK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_USB_PID_GENPIX_8PSK_REV_1_WARM,4,2 ## @USB_PID_GENPIX_8PSK_REV_1_WARM
	.comm	_bm8pskFW_Loaded,4,2            ## @bm8pskFW_Loaded
	.comm	_bmIntersilOn,4,2               ## @bmIntersilOn
	.comm	_START_INTERSIL,4,2             ## @START_INTERSIL
	.comm	_SET_DVB_MODE,4,2               ## @SET_DVB_MODE
	.comm	_ARM_TRANSFER,4,2               ## @ARM_TRANSFER
	.no_dead_strip	_gp8psk_power_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp8psk_power_ctrl
_gp8psk_power_ctrl:                     ; @gp8psk_power_ctrl
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x20, x0
	cbz	w21, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _GET_8PSK_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GET_8PSK_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x4, sp, #12
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w5, #1
	bl	_gp8psk_usb_in_op
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _bm8pskStarted@GOTPAGE
Lloh4:
	ldr	x9, [x9, _bm8pskStarted@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_2:
Lloh6:
	adrp	x21, _USB_PID_GENPIX_8PSK_REV_1_WARM@GOTPAGE
Lloh7:
	ldr	x21, [x21, _USB_PID_GENPIX_8PSK_REV_1_WARM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _bm8pskFW_Loaded@GOTPAGE
Lloh9:
	ldr	x9, [x9, _bm8pskFW_Loaded@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
LBB0_4:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _bmIntersilOn@GOTPAGE
Lloh12:
	ldr	x9, [x9, _bmIntersilOn@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
LBB0_5:
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _SET_DVB_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SET_DVB_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_gp8psk_usb_out_op
	cbnz	x0, LBB0_19
LBB0_7:
Lloh17:
	adrp	x8, _ARM_TRANSFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARM_TRANSFER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_gp8psk_usb_out_op
	cbnz	x0, LBB0_19
	b	LBB0_20
LBB0_8:
Lloh20:
	adrp	x8, _START_INTERSIL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _START_INTERSIL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w5, #1
	bl	_gp8psk_usb_in_op
	cbnz	x0, LBB0_19
; %bb.9:
Lloh23:
	adrp	x8, _BOOT_8PSK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BOOT_8PSK@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w5, #1
	bl	_gp8psk_usb_in_op
	cbnz	x0, LBB0_19
; %bb.10:
Lloh26:
	adrp	x8, _USB_PID_GENPIX_SKYWALKER_CW3K@GOTPAGE
Lloh27:
	ldr	x8, [x8, _USB_PID_GENPIX_SKYWALKER_CW3K@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_12
; %bb.11:
Lloh29:
	adrp	x8, _CW3K_INIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CW3K_INIT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_gp8psk_usb_out_op
LBB0_12:
	mov	w0, #0
	b	LBB0_20
LBB0_13:
Lloh32:
	adrp	x8, _USB_PID_GENPIX_SKYWALKER_CW3K@GOTPAGE
Lloh33:
	ldr	x8, [x8, _USB_PID_GENPIX_SKYWALKER_CW3K@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_15
; %bb.14:
Lloh35:
	adrp	x8, _CW3K_INIT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CW3K_INIT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_gp8psk_usb_out_op
LBB0_15:
Lloh38:
	adrp	x8, _BOOT_8PSK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BOOT_8PSK@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w5, #1
	bl	_gp8psk_usb_in_op
	cbnz	x0, LBB0_19
; %bb.16:
	mov	x0, x19
	bl	_gp8psk_info
	b	LBB0_2
LBB0_17:
Lloh41:
	adrp	x8, _START_INTERSIL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _START_INTERSIL@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w5, #1
	bl	_gp8psk_usb_in_op
	cbnz	x0, LBB0_19
	b	LBB0_5
LBB0_18:
	mov	x0, x19
	bl	_gp8psk_load_bcm4500fw
	cbz	x0, LBB0_4
LBB0_19:
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GET_8PSK_CONFIG,4,2            ; @GET_8PSK_CONFIG
	.comm	_bm8pskStarted,4,2              ; @bm8pskStarted
	.comm	_USB_PID_GENPIX_SKYWALKER_CW3K,4,2 ; @USB_PID_GENPIX_SKYWALKER_CW3K
	.comm	_CW3K_INIT,4,2                  ; @CW3K_INIT
	.comm	_BOOT_8PSK,4,2                  ; @BOOT_8PSK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_USB_PID_GENPIX_8PSK_REV_1_WARM,4,2 ; @USB_PID_GENPIX_8PSK_REV_1_WARM
	.comm	_bm8pskFW_Loaded,4,2            ; @bm8pskFW_Loaded
	.comm	_bmIntersilOn,4,2               ; @bmIntersilOn
	.comm	_START_INTERSIL,4,2             ; @START_INTERSIL
	.comm	_SET_DVB_MODE,4,2               ; @SET_DVB_MODE
	.comm	_ARM_TRANSFER,4,2               ; @ARM_TRANSFER
	.no_dead_strip	_gp8psk_power_ctrl
.subsections_via_symbols
