	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_encoder_current_mode     ## -- Begin function intel_encoder_current_mode
	.p2align	4, 0x90
_intel_encoder_current_mode:            ## @intel_encoder_current_mode
	.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	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r15
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_intel_get_crtc_for_pipe
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movl	(%r12), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r12
	movq	%r13, (%rax)
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	%r14, %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*(%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_intel_mode_from_pipe_config
	movq	%r12, %r14
	jmp	LBB0_10
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_8:
	movq	%r12, %rdi
	callq	_kfree
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_encoder_current_mode     ; -- Begin function intel_encoder_current_mode
	.p2align	2
_intel_encoder_current_mode:            ; @intel_encoder_current_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	w0, [x0, #16]
	bl	_to_i915
	mov	x21, x0
	ldr	x8, [x19, #8]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_intel_get_crtc_for_pipe
	mov	x23, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w1, [x22]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
	str	x23, [x0]
	ldr	x8, [x21]
	mov	x0, x23
	mov	x1, x22
	blr	x8
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x20
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x22
	blr	x8
	mov	x0, x20
	mov	x1, x22
	bl	_intel_mode_from_pipe_config
	mov	x20, x22
	b	LBB0_8
LBB0_5:
	mov	x21, #0
	b	LBB0_9
LBB0_6:
	mov	x0, x22
	bl	_kfree
LBB0_7:
	mov	x21, #0
LBB0_8:
	mov	x0, x20
	bl	_kfree
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
