	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_degrees_to_rot_mode        ## -- Begin function ipu_degrees_to_rot_mode
	.p2align	4, 0x90
_ipu_degrees_to_rot_mode:               ## @ipu_degrees_to_rot_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$179, %esi
	jg	LBB0_3
## %bb.1:
	testl	%esi, %esi
	je	LBB0_2
## %bb.6:
	cmpl	$90, %esi
	jne	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	cmpl	$180, %esi
	je	LBB0_12
## %bb.4:
	cmpl	$270, %esi                      ## imm = 0x10E
	jne	LBB0_7
## %bb.5:
	movl	$1, %eax
LBB0_9:
	movl	$4, %esi
	jmp	LBB0_10
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %eax
	jmp	LBB0_10
LBB0_12:
	movl	$1, %eax
	xorl	%esi, %esi
LBB0_10:
	xorl	%eax, %edx
	xorl	%eax, %ecx
	orl	%esi, %ecx
	addl	%edx, %edx
	orl	%ecx, %edx
	movl	%edx, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_degrees_to_rot_mode        ; -- Begin function ipu_degrees_to_rot_mode
	.p2align	2
_ipu_degrees_to_rot_mode:               ; @ipu_degrees_to_rot_mode
	.cfi_startproc
; %bb.0:
	cmp	w1, #179
	b.gt	LBB0_4
; %bb.1:
	cbz	w1, LBB0_9
; %bb.2:
	cmp	w1, #90
	b.ne	LBB0_8
; %bb.3:
	mov	w9, #0
	b	LBB0_7
LBB0_4:
	cmp	w1, #180
	b.eq	LBB0_10
; %bb.5:
	cmp	w1, #270
	b.ne	LBB0_8
; %bb.6:
	mov	w9, #1
LBB0_7:
	mov	w1, #4
	b	LBB0_11
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_9:
	mov	x9, x1
	b	LBB0_11
LBB0_10:
	mov	w1, #0
	mov	w9, #1
LBB0_11:
	eor	w10, w9, w2
	eor	w9, w9, w3
	orr	w9, w9, w1
	orr	w9, w9, w10, lsl #1
	str	w9, [x0]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
