	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpe_audio_setup
_lpe_audio_setup:                       ## @lpe_audio_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_irq_alloc_desc
	movl	%eax, (%rbx)
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG
	movq	%rbx, %rdi
	callq	_lpe_audio_irq_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	movl	(%rbx), %r14d
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	callq	_lpe_audio_platdev_create
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	movl	%eax, %esi
	callq	_DRM_ERROR
	movl	(%rbx), %edi
	callq	_irq_free_desc
LBB0_8:
	movl	$-1, (%rbx)
	movq	$0, 8(%rbx)
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	_VLV_AUD_CHICKEN_BIT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VLV_CHICKEN_BIT_DBG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_I915_WRITE
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate IRQ desc: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"irq = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to initialize irqchip for lpe audio: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to create lpe audio platform device: %d\n"

	.comm	_VLV_AUD_CHICKEN_BIT_REG,4,2    ## @VLV_AUD_CHICKEN_BIT_REG
	.comm	_VLV_CHICKEN_BIT_DBG_ENABLE,4,2 ## @VLV_CHICKEN_BIT_DBG_ENABLE
	.no_dead_strip	_lpe_audio_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpe_audio_setup
_lpe_audio_setup:                       ; @lpe_audio_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #0
	bl	_irq_alloc_desc
	mov	x1, x0
	str	w0, [x19]
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	mov	x0, x19
	bl	_lpe_audio_irq_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	ldr	w20, [x19]
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_lpe_audio_platdev_create
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	mov	x1, x20
	bl	_DRM_ERROR
	ldr	w0, [x19]
	bl	_irq_free_desc
LBB0_7:
	mov	w8, #-1
	str	w8, [x19]
	str	xzr, [x19, #8]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh8:
	adrp	x8, _VLV_AUD_CHICKEN_BIT_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VLV_AUD_CHICKEN_BIT_REG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _VLV_CHICKEN_BIT_DBG_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VLV_CHICKEN_BIT_DBG_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_I915_WRITE
	mov	w20, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate IRQ desc: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"irq = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to initialize irqchip for lpe audio: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to create lpe audio platform device: %d\n"

	.comm	_VLV_AUD_CHICKEN_BIT_REG,4,2    ; @VLV_AUD_CHICKEN_BIT_REG
	.comm	_VLV_CHICKEN_BIT_DBG_ENABLE,4,2 ; @VLV_CHICKEN_BIT_DBG_ENABLE
	.no_dead_strip	_lpe_audio_setup
.subsections_via_symbols
