	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp1_program_rotation         ## -- Begin function hubp1_program_rotation
	.p2align	4, 0x90
_hubp1_program_rotation:                ## @hubp1_program_rotation
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_TO_DCN10_HUBP
	xorl	%r8d, %r8d
	testl	%ebx, %ebx
	setne	%al
	movq	_ROTATION_ANGLE_0@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%r14d, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_ROTATION_ANGLE_90@GOTPCREL(%rip), %rcx
	movl	$1, %edx
	cmpl	%r14d, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	_ROTATION_ANGLE_180@GOTPCREL(%rip), %rcx
	movl	$2, %edx
	cmpl	%r14d, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_ROTATION_ANGLE_270@GOTPCREL(%rip), %rcx
	movl	$3, %edx
	cmpl	%r14d, (%rcx)
	jne	LBB0_4
LBB0_5:
	movb	%al, %r8b
	movq	_DCSURF_SURFACE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ROTATION_ANGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_H_MIRROR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_UPDATE_2                   ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROTATION_ANGLE_0,4,2           ## @ROTATION_ANGLE_0
	.comm	_DCSURF_SURFACE_CONFIG,4,2      ## @DCSURF_SURFACE_CONFIG
	.comm	_ROTATION_ANGLE,4,2             ## @ROTATION_ANGLE
	.comm	_H_MIRROR_EN,4,2                ## @H_MIRROR_EN
	.comm	_ROTATION_ANGLE_90,4,2          ## @ROTATION_ANGLE_90
	.comm	_ROTATION_ANGLE_180,4,2         ## @ROTATION_ANGLE_180
	.comm	_ROTATION_ANGLE_270,4,2         ## @ROTATION_ANGLE_270
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp1_program_rotation         ; -- Begin function hubp1_program_rotation
	.p2align	2
_hubp1_program_rotation:                ; @hubp1_program_rotation
	.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	x20, x2
	mov	x19, x1
	bl	_TO_DCN10_HUBP
	cmp	w20, #0
	cset	w4, ne
Lloh0:
	adrp	x8, _ROTATION_ANGLE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROTATION_ANGLE_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #0
	b	LBB0_8
LBB0_2:
Lloh3:
	adrp	x8, _ROTATION_ANGLE_90@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROTATION_ANGLE_90@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
	mov	w2, #1
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _ROTATION_ANGLE_180@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ROTATION_ANGLE_180@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.5:
	mov	w2, #2
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _ROTATION_ANGLE_270@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ROTATION_ANGLE_270@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.7:
	mov	w2, #3
LBB0_8:
Lloh12:
	adrp	x8, _DCSURF_SURFACE_CONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DCSURF_SURFACE_CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _ROTATION_ANGLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ROTATION_ANGLE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _H_MIRROR_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _H_MIRROR_EN@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_UPDATE_2
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ROTATION_ANGLE_0,4,2           ; @ROTATION_ANGLE_0
	.comm	_DCSURF_SURFACE_CONFIG,4,2      ; @DCSURF_SURFACE_CONFIG
	.comm	_ROTATION_ANGLE,4,2             ; @ROTATION_ANGLE
	.comm	_H_MIRROR_EN,4,2                ; @H_MIRROR_EN
	.comm	_ROTATION_ANGLE_90,4,2          ; @ROTATION_ANGLE_90
	.comm	_ROTATION_ANGLE_180,4,2         ; @ROTATION_ANGLE_180
	.comm	_ROTATION_ANGLE_270,4,2         ; @ROTATION_ANGLE_270
.subsections_via_symbols
