	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function intel_overlay_setup
LCPI0_0:
	.long	66046                           ## 0x101fe
	.long	1                               ## 0x1
	.long	4294967277                      ## 0xffffffed
	.long	75                              ## 0x4b
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_intel_overlay_setup
	.p2align	4, 0x90
_intel_overlay_setup:                   ## @intel_overlay_setup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_HAS_OVERLAY
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_RCS0@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_HAS_ENGINE
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, 32(%rax)
	movq	8(%rbx), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [66046,1,4294967277,75]
	movups	%xmm0, (%r14)
	movl	$146, 16(%r14)
	movq	%r14, %rsi
	addq	$24, %rsi
	movq	_intel_overlay_last_flip_retire@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_i915_active_init
	movq	%rbx, %rdi
	callq	_OVERLAY_NEEDS_PHYSICAL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_get_registers
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	20(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset_io
	movl	20(%r14), %edi
	callq	_update_polyphase_filter
	movl	20(%r14), %esi
	movq	%r14, %rdi
	callq	_update_reg_attrs
	movq	%r14, (%rbx)
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_INFO                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCS0,8,3                       ## @RCS0
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_intel_overlay_last_flip_retire,4,2 ## @intel_overlay_last_flip_retire
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initialized overlay support.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function intel_overlay_setup
lCPI0_0:
	.long	66046                           ; 0x101fe
	.long	1                               ; 0x1
	.long	4294967277                      ; 0xffffffed
	.long	75                              ; 0x4b
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_intel_overlay_setup
	.p2align	2
_intel_overlay_setup:                   ; @intel_overlay_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_HAS_OVERLAY
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x21, _RCS0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RCS0@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_HAS_ENGINE
	cbz	w0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	str	x19, [x0, #32]
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8]
	str	w8, [x0, #28]
	cmp	w8, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x20]
	mov	w8, #146
	str	w8, [x20, #16]
	add	x1, x20, #24
Lloh7:
	adrp	x8, _intel_overlay_last_flip_retire@GOTPAGE
Lloh8:
	ldr	x8, [x8, _intel_overlay_last_flip_retire@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_i915_active_init
	mov	x0, x19
	bl	_OVERLAY_NEEDS_PHYSICAL
	mov	x1, x0
	mov	x0, x20
	bl	_get_registers
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x20, #20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset_io
	ldr	w0, [x20, #20]
	bl	_update_polyphase_filter
	ldr	w1, [x20, #20]
	mov	x0, x20
	bl	_update_reg_attrs
	str	x20, [x19]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DRM_INFO
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RCS0,8,3                       ; @RCS0
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_intel_overlay_last_flip_retire,4,2 ; @intel_overlay_last_flip_retire
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initialized overlay support.\n"

.subsections_via_symbols
