	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mipi_exec_gpio
_mipi_exec_gpio:                        ## @mipi_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
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	(%r12), %eax
	leaq	4(%rbx), %r14
	movl	(%rbx), %ecx
	cmpl	$3, %eax
	jl	LBB0_2
## %bb.1:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	$8, %rbx
	xorl	%r15d, %r15d
	movq	%rbx, %rax
	jmp	LBB0_5
LBB0_2:
	xorl	%r15d, %r15d
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %r15d
	shrl	%r15d
	andl	$3, %r15d
LBB0_4:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rax
	movq	%rbx, %r14
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movl	(%rax), %r13d
	andl	$1, %r13d
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_icl_exec_gpio
	jmp	LBB0_12
LBB0_7:
	movq	%r12, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_vlv_exec_gpio
	jmp	LBB0_12
LBB0_9:
	movq	%r12, %rdi
	callq	_IS_CHERRYVIEW
	movq	%r12, %rdi
	movl	%r15d, %esi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_chv_exec_gpio
	jmp	LBB0_12
LBB0_11:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_bxt_exec_gpio
LBB0_12:
	addq	$8, %r14
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.no_dead_strip	_mipi_exec_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mipi_exec_gpio
_mipi_exec_gpio:                        ; @mipi_exec_gpio
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x1
	ldr	x0, [x0]
	bl	_to_i915
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x19]
	mov	x24, x23
	ldr	w21, [x24], #4
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	mov	w20, #0
	add	x8, x23, #8
	ldr	w22, [x23, #4]
	b	LBB0_6
LBB0_2:
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x24]
	ubfx	w20, w8, #1, #2
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x22, x21
	mov	x8, x24
	mov	x24, x23
	mov	w21, #0
LBB0_6:
	ldr	w8, [x8]
	and	w23, w8, #0x1
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_icl_exec_gpio
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_vlv_exec_gpio
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_chv_exec_gpio
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_bxt_exec_gpio
LBB0_13:
	add	x0, x24, #8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.no_dead_strip	_mipi_exec_gpio
.subsections_via_symbols
