	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msic_gpio_to_oreg
_msic_gpio_to_oreg:                     ## @msic_gpio_to_oreg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MSIC_NUM_GPIO@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jbe	LBB0_1
## %bb.2:
	cmpl	$7, %edi
	ja	LBB0_4
## %bb.3:
	movq	_INTEL_MSIC_GPIO0LV0CTLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%edi, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	cmpl	$15, %edi
	ja	LBB0_6
## %bb.5:
	movq	_INTEL_MSIC_GPIO1LV0CTLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%edi, %eax
	addl	$8, %eax
	popq	%rbp
	retq
LBB0_6:
	cmpl	$19, %edi
	ja	LBB0_8
## %bb.7:
	movq	_INTEL_MSIC_GPIO0HV0CTLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%edi, %eax
	addl	$16, %eax
	popq	%rbp
	retq
LBB0_8:
	movq	_INTEL_MSIC_GPIO1HV0CTLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%edi, %eax
	addl	$20, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSIC_NUM_GPIO,4,2              ## @MSIC_NUM_GPIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INTEL_MSIC_GPIO0LV0CTLO,4,2    ## @INTEL_MSIC_GPIO0LV0CTLO
	.comm	_INTEL_MSIC_GPIO1LV0CTLO,4,2    ## @INTEL_MSIC_GPIO1LV0CTLO
	.comm	_INTEL_MSIC_GPIO0HV0CTLO,4,2    ## @INTEL_MSIC_GPIO0HV0CTLO
	.comm	_INTEL_MSIC_GPIO1HV0CTLO,4,2    ## @INTEL_MSIC_GPIO1HV0CTLO
	.no_dead_strip	_msic_gpio_to_oreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msic_gpio_to_oreg
_msic_gpio_to_oreg:                     ; @msic_gpio_to_oreg
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MSIC_NUM_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSIC_NUM_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_3
; %bb.1:
	cmp	w0, #7
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _INTEL_MSIC_GPIO0LV0CTLO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_MSIC_GPIO0LV0CTLO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w0, w8, w0
	ret
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	cmp	w0, #15
	b.hi	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _INTEL_MSIC_GPIO1LV0CTLO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INTEL_MSIC_GPIO1LV0CTLO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w8, w8, w0
	add	w0, w8, #8
	ret
LBB0_6:
	cmp	w0, #19
	b.hi	LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _INTEL_MSIC_GPIO0HV0CTLO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTEL_MSIC_GPIO0HV0CTLO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	sub	w8, w8, w0
	add	w0, w8, #16
	ret
LBB0_8:
Lloh15:
	adrp	x8, _INTEL_MSIC_GPIO1HV0CTLO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INTEL_MSIC_GPIO1HV0CTLO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	sub	w8, w8, w0
	add	w0, w8, #20
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSIC_NUM_GPIO,4,2              ; @MSIC_NUM_GPIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INTEL_MSIC_GPIO0LV0CTLO,4,2    ; @INTEL_MSIC_GPIO0LV0CTLO
	.comm	_INTEL_MSIC_GPIO1LV0CTLO,4,2    ; @INTEL_MSIC_GPIO1LV0CTLO
	.comm	_INTEL_MSIC_GPIO0HV0CTLO,4,2    ; @INTEL_MSIC_GPIO0HV0CTLO
	.comm	_INTEL_MSIC_GPIO1HV0CTLO,4,2    ; @INTEL_MSIC_GPIO1HV0CTLO
	.no_dead_strip	_msic_gpio_to_oreg
.subsections_via_symbols
