	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_exec_gpio
_vlv_exec_gpio:                         ## @vlv_exec_gpio
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_vlv_gpio_table@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rbx, %rax
	jbe	LBB0_1
## %bb.3:
	movq	(%r13), %r13
	cmpl	$2, (%r15)
	jg	LBB0_7
## %bb.4:
	testq	%r12, %r12
	je	LBB0_7
## %bb.5:
	cmpq	$1, %r12
	jne	LBB0_6
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_7:
	movq	_IOSF_PORT_GPIO_NC@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	4(%r13,%rbx,8), %edi
	callq	_VLV_GPIO_PCONF0
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13,%rbx,8), %edi
	callq	_VLV_GPIO_PAD_VAL
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_VLV_IOSF_SB_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_vlv_iosf_sb_get
	cmpl	$0, (%r13,%rbx,8)
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$536923136, %ecx                ## imm = 0x2000CC00
	callq	_vlv_iosf_sb_write
	movl	$1, (%r13,%rbx,8)
LBB0_9:
	orl	$4, %r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_vlv_iosf_sb_write
	movq	_VLV_IOSF_SB_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vlv_iosf_sb_put                ## TAILCALL
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_vlv_gpio_table,8,3             ## @vlv_gpio_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown gpio index %u\n"

	.comm	_IOSF_PORT_GPIO_NC,8,3          ## @IOSF_PORT_GPIO_NC
L_.str.1:                               ## @.str.1
	.asciz	"SC gpio not supported\n"

L_.str.2:                               ## @.str.2
	.asciz	"unknown gpio source %u\n"

	.comm	_VLV_IOSF_SB_GPIO,4,2           ## @VLV_IOSF_SB_GPIO
	.no_dead_strip	_vlv_exec_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_exec_gpio
_vlv_exec_gpio:                         ; @vlv_exec_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _vlv_gpio_table@GOTPAGE
Lloh1:
	ldr	x23, [x23, _vlv_gpio_table@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x0, x22
	b.ls	LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #2
	ccmp	x21, #0, #4, le
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _IOSF_PORT_GPIO_NC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IOSF_PORT_GPIO_NC@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x9]
	add	x24, x8, x22, lsl #3
	ldr	w0, [x24, #4]
	bl	_VLV_GPIO_PCONF0
	mov	x23, x0
	ldr	w0, [x24, #4]
	bl	_VLV_GPIO_PAD_VAL
	mov	x22, x0
Lloh5:
	adrp	x25, _VLV_IOSF_SB_GPIO@GOTPAGE
Lloh6:
	ldr	x25, [x25, _VLV_IOSF_SB_GPIO@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_BIT
	mov	x1, x0
	mov	x0, x19
	bl	_vlv_iosf_sb_get
	ldr	w8, [x24]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	w3, #52224
	movk	w3, #8192, lsl #16
	bl	_vlv_iosf_sb_write
	mov	w8, #1
	str	w8, [x24]
LBB0_4:
	orr	w3, w20, #0x4
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_vlv_iosf_sb_write
	ldr	w0, [x25]
	bl	_BIT
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_vlv_iosf_sb_put
LBB0_5:
	str	x22, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_DRM_DEBUG_KMS
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	cmp	x21, #1
	b.ne	LBB0_9
; %bb.8:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_DRM_DEBUG_KMS
LBB0_9:
	str	x21, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_vlv_gpio_table,8,3             ; @vlv_gpio_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown gpio index %u\n"

	.comm	_IOSF_PORT_GPIO_NC,8,3          ; @IOSF_PORT_GPIO_NC
l_.str.1:                               ; @.str.1
	.asciz	"SC gpio not supported\n"

l_.str.2:                               ; @.str.2
	.asciz	"unknown gpio source %u\n"

	.comm	_VLV_IOSF_SB_GPIO,4,2           ; @VLV_IOSF_SB_GPIO
	.no_dead_strip	_vlv_exec_gpio
.subsections_via_symbols
