	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibx_enable_hdmi
_ibx_enable_hdmi:                       ## @ibx_enable_hdmi
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_to_i915
	movq	%r15, %rdi
	callq	_enc_to_intel_hdmi
	movq	%rax, %r13
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %r14
	orl	(%r14), %ebx
	xorl	%eax, %eax
	cmpq	$0, 8(%r12)
	je	LBB0_2
## %bb.1:
	movq	_HDMI_AUDIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %ebx
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r13), %edi
	callq	_POSTING_READ
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r13), %edi
	callq	_POSTING_READ
	cmpl	$25, (%r12)
	jl	LBB0_5
## %bb.3:
	cmpl	$2, 4(%r12)
	jl	LBB0_5
## %bb.4:
	movl	(%r13), %edi
	movl	(%r14), %esi
	notl	%esi
	andl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r13), %edi
	callq	_POSTING_READ
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r13), %edi
	callq	_POSTING_READ
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r13), %edi
	callq	_POSTING_READ
LBB0_5:
	cmpq	$0, 8(%r12)
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_enable_hdmi_audio        ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVO_ENABLE,4,2                ## @SDVO_ENABLE
	.comm	_HDMI_AUDIO_ENABLE,4,2          ## @HDMI_AUDIO_ENABLE
	.no_dead_strip	_ibx_enable_hdmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibx_enable_hdmi
_ibx_enable_hdmi:                       ; @ibx_enable_hdmi
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_to_i915
	mov	x0, x21
	bl	_enc_to_intel_hdmi
	mov	x22, x0
	ldr	w0, [x0]
	bl	_I915_READ
Lloh0:
	adrp	x24, _SDVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SDVO_ENABLE@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w8, w8, w0
Lloh2:
	adrp	x9, _HDMI_AUDIO_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HDMI_AUDIO_ENABLE@GOTPAGEOFF]
	ldr	x10, [x20, #8]
Lloh4:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w23, w8, w9
	ldr	w0, [x22]
	mov	x1, x23
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	ldr	w0, [x22]
	mov	x1, x23
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	ldr	w8, [x20]
	cmp	w8, #25
	b.lt	LBB0_3
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x22]
	ldr	w8, [x24]
	bic	w1, w23, w8
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	ldr	w0, [x22]
	mov	x1, x23
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	ldr	w0, [x22]
	mov	x1, x23
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_intel_enable_hdmi_audio
LBB0_5:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
	.comm	_HDMI_AUDIO_ENABLE,4,2          ; @HDMI_AUDIO_ENABLE
	.no_dead_strip	_ibx_enable_hdmi
.subsections_via_symbols
