	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_get_aux_send_ctl
_g4x_get_aux_send_ctl:                  ## @g4x_get_aux_send_ctl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	callq	_dp_to_dig_port
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	(%rcx,%rcx), %ebx
	addl	$3, %ebx
	movq	%r12, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_DP_AUX_CH_CTL_TIME_OUT_400us@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DP_AUX_CH_CTL_TIME_OUT_600us@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_DP_AUX_CH_CTL_SEND_BUSY@GOTPCREL(%rip), %rdx
	movq	_DP_AUX_CH_CTL_DONE@GOTPCREL(%rip), %r9
	movq	_DP_AUX_CH_CTL_INTERRUPT@GOTPCREL(%rip), %r8
	movq	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	movq	_DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPCREL(%rip), %rdi
	movq	_DP_AUX_CH_CTL_RECEIVE_ERROR@GOTPCREL(%rip), %rsi
	orl	%r14d, %ebx
	movq	_DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	orl	(%rdx), %eax
	orl	(%r9), %eax
	orl	(%r8), %eax
	orl	(%rdi), %eax
	orl	%ebx, %r15d
	orl	(%rsi), %eax
	orl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_AUX_CH_CTL_TIME_OUT_600us,4,2 ## @DP_AUX_CH_CTL_TIME_OUT_600us
	.comm	_DP_AUX_CH_CTL_TIME_OUT_400us,4,2 ## @DP_AUX_CH_CTL_TIME_OUT_400us
	.comm	_DP_AUX_CH_CTL_SEND_BUSY,4,2    ## @DP_AUX_CH_CTL_SEND_BUSY
	.comm	_DP_AUX_CH_CTL_DONE,4,2         ## @DP_AUX_CH_CTL_DONE
	.comm	_DP_AUX_CH_CTL_INTERRUPT,4,2    ## @DP_AUX_CH_CTL_INTERRUPT
	.comm	_DP_AUX_CH_CTL_TIME_OUT_ERROR,4,2 ## @DP_AUX_CH_CTL_TIME_OUT_ERROR
	.comm	_DP_AUX_CH_CTL_RECEIVE_ERROR,4,2 ## @DP_AUX_CH_CTL_RECEIVE_ERROR
	.comm	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT,4,2 ## @DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT
	.comm	_DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT,4,2 ## @DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT
	.comm	_DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT,4,2 ## @DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT
	.no_dead_strip	_g4x_get_aux_send_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_get_aux_send_ctl
_g4x_get_aux_send_ctl:                  ; @g4x_get_aux_send_ctl
	.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, x2
	mov	x20, x1
	bl	_dp_to_dig_port
	ldr	w0, [x0]
	bl	_to_i915
	mov	x21, x0
	mov	w1, #6
	bl	_IS_GEN
	cmp	x0, #0
	mov	w8, #3
	mov	w9, #5
	csel	w22, w9, w8, eq
	mov	x0, x21
	bl	_IS_BROADWELL
Lloh0:
	adrp	x8, _DP_AUX_CH_CTL_TIME_OUT_400us@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_AUX_CH_CTL_TIME_OUT_400us@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DP_AUX_CH_CTL_TIME_OUT_600us@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DP_AUX_CH_CTL_TIME_OUT_600us@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _DP_AUX_CH_CTL_SEND_BUSY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DP_AUX_CH_CTL_SEND_BUSY@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _DP_AUX_CH_CTL_DONE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DP_AUX_CH_CTL_DONE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
Lloh10:
	adrp	x11, _DP_AUX_CH_CTL_INTERRUPT@GOTPAGE
Lloh11:
	ldr	x11, [x11, _DP_AUX_CH_CTL_INTERRUPT@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
Lloh13:
	adrp	x12, _DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPAGE
Lloh14:
	ldr	x12, [x12, _DP_AUX_CH_CTL_TIME_OUT_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w12, [x12]
Lloh16:
	adrp	x13, _DP_AUX_CH_CTL_RECEIVE_ERROR@GOTPAGE
Lloh17:
	ldr	x13, [x13, _DP_AUX_CH_CTL_RECEIVE_ERROR@GOTPAGEOFF]
Lloh18:
	adrp	x14, _DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPAGE
Lloh19:
	ldr	x14, [x14, _DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w14, [x14]
	lsl	w14, w20, w14
Lloh21:
	adrp	x15, _DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT@GOTPAGE
Lloh22:
	ldr	x15, [x15, _DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w15, [x15]
	lsl	w15, w22, w15
Lloh24:
	adrp	x16, _DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT@GOTPAGE
Lloh25:
	ldr	x16, [x16, _DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w13, [x13]
Lloh27:
	ldr	w16, [x16]
	lsl	w16, w19, w16
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w8, w8, w14
	orr	w8, w8, w15
	orr	w0, w8, w16
	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
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh26
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_AUX_CH_CTL_TIME_OUT_600us,4,2 ; @DP_AUX_CH_CTL_TIME_OUT_600us
	.comm	_DP_AUX_CH_CTL_TIME_OUT_400us,4,2 ; @DP_AUX_CH_CTL_TIME_OUT_400us
	.comm	_DP_AUX_CH_CTL_SEND_BUSY,4,2    ; @DP_AUX_CH_CTL_SEND_BUSY
	.comm	_DP_AUX_CH_CTL_DONE,4,2         ; @DP_AUX_CH_CTL_DONE
	.comm	_DP_AUX_CH_CTL_INTERRUPT,4,2    ; @DP_AUX_CH_CTL_INTERRUPT
	.comm	_DP_AUX_CH_CTL_TIME_OUT_ERROR,4,2 ; @DP_AUX_CH_CTL_TIME_OUT_ERROR
	.comm	_DP_AUX_CH_CTL_RECEIVE_ERROR,4,2 ; @DP_AUX_CH_CTL_RECEIVE_ERROR
	.comm	_DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT,4,2 ; @DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT
	.comm	_DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT,4,2 ; @DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT
	.comm	_DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT,4,2 ; @DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT
	.no_dead_strip	_g4x_get_aux_send_ctl
.subsections_via_symbols
