	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiuse_set_ir_position         ## -- Begin function wiiuse_set_ir_position
	.p2align	4, 0x90
_wiiuse_set_ir_position:                ## @wiiuse_set_ir_position
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movl	%esi, (%rdi)
	cmpl	$128, %esi
	je	LBB0_7
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_13
## %bb.3:
	movq	8(%rdi), %rcx
	movl	$0, (%rcx)
	movl	16(%rdi), %eax
	movq	_WIIUSE_ASPECT_16_9@GOTPCREL(%rip), %rdx
	movl	$2, %esi
	cmpl	(%rdx), %eax
	jne	LBB0_5
## %bb.4:
	movl	$-70, %edi
	movq	_WM_ASPECT_16_9_Y@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	8(%rdi), %rcx
	movl	$0, (%rcx)
	movl	16(%rdi), %eax
	movq	_WIIUSE_ASPECT_16_9@GOTPCREL(%rip), %rdx
	movl	$-2, %esi
	cmpl	(%rdx), %eax
	jne	LBB0_9
## %bb.8:
	movl	$70, %edi
	movq	_WM_ASPECT_16_9_Y@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_WIIUSE_ASPECT_4_3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_13
## %bb.6:
	movl	$-100, %edi
	jmp	LBB0_11
LBB0_9:
	movq	_WIIUSE_ASPECT_4_3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_13
## %bb.10:
	movl	$100, %edi
LBB0_11:
	movq	_WM_ASPECT_4_3_Y@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	cltd
	idivl	%esi
	addl	%edi, %eax
	movl	%eax, 4(%rcx)
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIUSE_ASPECT_16_9,4,2         ## @WIIUSE_ASPECT_16_9
	.comm	_WM_ASPECT_16_9_Y,4,2           ## @WM_ASPECT_16_9_Y
	.comm	_WIIUSE_ASPECT_4_3,4,2          ## @WIIUSE_ASPECT_4_3
	.comm	_WM_ASPECT_4_3_Y,4,2            ## @WM_ASPECT_4_3_Y
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiuse_set_ir_position         ; -- Begin function wiiuse_set_ir_position
	.p2align	2
_wiiuse_set_ir_position:                ; @wiiuse_set_ir_position
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_14
; %bb.1:
	str	w1, [x0]
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_14
; %bb.3:
	ldr	x8, [x0, #8]
	str	wzr, [x8]
	ldr	w9, [x0, #16]
Lloh0:
	adrp	x10, _WIIUSE_ASPECT_16_9@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WIIUSE_ASPECT_16_9@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.4:
	mov	w9, #-70
	mov	w10, #2
	b	LBB0_7
LBB0_5:
	ldr	x8, [x0, #8]
	str	wzr, [x8]
	ldr	w9, [x0, #16]
Lloh3:
	adrp	x10, _WIIUSE_ASPECT_16_9@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WIIUSE_ASPECT_16_9@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_10
; %bb.6:
	mov	w9, #70
	mov	w10, #-2
LBB0_7:
Lloh6:
	adrp	x11, _WM_ASPECT_16_9_Y@GOTPAGE
Lloh7:
	ldr	x11, [x11, _WM_ASPECT_16_9_Y@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh8:
	adrp	x10, _WIIUSE_ASPECT_4_3@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WIIUSE_ASPECT_4_3@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_14
; %bb.9:
	mov	w9, #-100
	mov	w10, #2
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x10, _WIIUSE_ASPECT_4_3@GOTPAGE
Lloh12:
	ldr	x10, [x10, _WIIUSE_ASPECT_4_3@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_14
; %bb.11:
	mov	w9, #100
	mov	w10, #-2
LBB0_12:
Lloh14:
	adrp	x11, _WM_ASPECT_4_3_Y@GOTPAGE
Lloh15:
	ldr	x11, [x11, _WM_ASPECT_4_3_Y@GOTPAGEOFF]
LBB0_13:
	ldr	w11, [x11]
	sdiv	w10, w11, w10
	add	w9, w10, w9
	str	w9, [x8, #4]
LBB0_14:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIUSE_ASPECT_16_9,4,2         ; @WIIUSE_ASPECT_16_9
	.comm	_WM_ASPECT_16_9_Y,4,2           ; @WM_ASPECT_16_9_Y
	.comm	_WIIUSE_ASPECT_4_3,4,2          ; @WIIUSE_ASPECT_4_3
	.comm	_WM_ASPECT_4_3_Y,4,2            ; @WM_ASPECT_4_3_Y
.subsections_via_symbols
