	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_ddi_set_iboost
_skl_ddi_set_iboost:                    ## @skl_ddi_set_iboost
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	addq	$4, %rdi
	callq	_enc_to_dig_port
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	(%rbx), %r13d
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rcx
	movq	(%rax), %rax
	cmpl	%r14d, (%rcx)
	jne	LBB0_8
## %bb.1:
	movl	(%rax,%r13,8), %ebx
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.2:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_intel_ddi_get_buf_trans_hdmi
	jmp	LBB0_6
LBB0_8:
	movl	4(%rax,%r13,8), %ebx
	testl	%ebx, %ebx
	je	LBB0_3
LBB0_9:
	cmpl	$7, %ebx
	ja	LBB0_11
LBB0_10:
	movl	$139, %eax
	btl	%ebx, %eax
	jae	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	__skl_ddi_set_iboost
	movq	_PORT_A@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_15
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$4, (%rax)
	jne	LBB0_15
## %bb.14:
	movq	_PORT_E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	__skl_ddi_set_iboost
	jmp	LBB0_15
LBB0_3:
	movq	_INTEL_OUTPUT_EDP@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_5
## %bb.4:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_intel_ddi_get_buf_trans_edp
	jmp	LBB0_6
LBB0_5:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_intel_ddi_get_buf_trans_dp
LBB0_6:
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_15
## %bb.7:
	xorl	%edi, %edi
	cmpl	%r12d, -44(%rbp)
	setle	%dil
	callq	_WARN_ON_ONCE
	movl	-44(%rbp), %ecx
	decl	%ecx
	testq	%rax, %rax
	cmovel	%r12d, %ecx
	movslq	%ecx, %rax
	movl	(%rbx,%rax,4), %ebx
	cmpl	$7, %ebx
	jbe	LBB0_10
LBB0_11:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_ERROR
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.comm	_INTEL_OUTPUT_EDP,4,2           ## @INTEL_OUTPUT_EDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid I_boost value %u\n"

	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_PORT_E,4,2                     ## @PORT_E
	.no_dead_strip	_skl_ddi_set_iboost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_ddi_set_iboost
_skl_ddi_set_iboost:                    ; @skl_ddi_set_iboost
	.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	x24, x2
	mov	x22, x1
	mov	x21, x0
	add	x0, x0, #4
	bl	_enc_to_dig_port
	mov	x20, x0
	ldr	w0, [x21, #4]
	bl	_to_i915
	mov	x19, x0
	ldr	w21, [x21]
Lloh0:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x0]
	cmp	w9, w24
	b.ne	LBB0_3
; %bb.1:
	lsl	x9, x21, #3
	ldr	w23, [x8, x9]
	cbnz	w23, LBB0_9
; %bb.2:
	add	x1, sp, #12
	mov	x0, x19
	bl	_intel_ddi_get_buf_trans_hdmi
	b	LBB0_7
LBB0_3:
	add	x8, x8, x21, lsl #3
	ldr	w23, [x8, #4]
	cbnz	w23, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _INTEL_OUTPUT_EDP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_OUTPUT_EDP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	cmp	w8, w24
	b.ne	LBB0_6
; %bb.5:
	bl	_intel_ddi_get_buf_trans_edp
	b	LBB0_7
LBB0_6:
	bl	_intel_ddi_get_buf_trans_dp
LBB0_7:
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_14
; %bb.8:
	ldr	w8, [sp, #12]
	cmp	w8, w22
	cset	w0, le
	bl	_WARN_ON_ONCE
	ldr	w8, [sp, #12]
	sub	w8, w8, #1
	cmp	x0, #0
	csel	w8, w22, w8, eq
	ldr	w23, [x23, w8, sxtw #2]
LBB0_9:
	cmp	w23, #7
	mov	w8, #1
	lsl	w8, w8, w23
	mov	w9, #139
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_13
; %bb.10:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	__skl_ddi_set_iboost
Lloh6:
	adrp	x8, _PORT_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_A@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_14
; %bb.11:
	ldr	w8, [x20]
	cmp	w8, #4
	b.ne	LBB0_14
; %bb.12:
Lloh9:
	adrp	x8, _PORT_E@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_E@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	__skl_ddi_set_iboost
	b	LBB0_14
LBB0_13:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_DRM_ERROR
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.comm	_INTEL_OUTPUT_EDP,4,2           ; @INTEL_OUTPUT_EDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid I_boost value %u\n"

	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_PORT_E,4,2                     ; @PORT_E
	.no_dead_strip	_skl_ddi_set_iboost
.subsections_via_symbols
