	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v8_0_hpd_set_polarity
_dce_v8_0_hpd_set_polarity:             ## @dce_v8_0_hpd_set_polarity
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_dce_v8_0_hpd_sense
	cmpl	%r15d, (%rbx)
	jbe	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	_mmDC_HPD1_INT_CONTROL@GOTPCREL(%rip), %r12
	movq	_hpd_offsets@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	%r15d, %ebx
	movq	(%rax,%rbx,8), %rdi
	addq	(%r12), %rdi
	callq	_RREG32
	movq	_DC_HPD1_INT_CONTROL__DC_HPD1_INT_POLARITY_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %esi
	testl	%r14d, %r14d
	cmovnel	%ecx, %esi
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r12), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmDC_HPD1_INT_CONTROL,8,3      ## @mmDC_HPD1_INT_CONTROL
	.comm	_hpd_offsets,8,3                ## @hpd_offsets
	.comm	_DC_HPD1_INT_CONTROL__DC_HPD1_INT_POLARITY_MASK,4,2 ## @DC_HPD1_INT_CONTROL__DC_HPD1_INT_POLARITY_MASK
	.no_dead_strip	_dce_v8_0_hpd_set_polarity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v8_0_hpd_set_polarity
_dce_v8_0_hpd_set_polarity:             ; @dce_v8_0_hpd_set_polarity
	.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	x20, x1
	mov	x21, x0
	bl	_dce_v8_0_hpd_sense
	ldr	w8, [x21]
	cmp	w8, w20
	b.ls	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _mmDC_HPD1_INT_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mmDC_HPD1_INT_CONTROL@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _hpd_offsets@GOTPAGE
Lloh3:
	ldr	x22, [x22, _hpd_offsets@GOTPAGEOFF]
	ldr	x9, [x22]
	mov	w10, w20
	lsl	x20, x10, #3
	ldr	x9, [x9, x20]
	add	x0, x9, x8
	bl	_RREG32
Lloh4:
	adrp	x8, _DC_HPD1_INT_CONTROL__DC_HPD1_INT_POLARITY_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DC_HPD1_INT_CONTROL__DC_HPD1_INT_POLARITY_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w9, w0, w8
	orr	w8, w8, w0
	cmp	w19, #0
	csel	w1, w8, w9, eq
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x9, [x9, x20]
	add	x0, x9, x8
	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	_WREG32
LBB0_2:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mmDC_HPD1_INT_CONTROL,8,3      ; @mmDC_HPD1_INT_CONTROL
	.comm	_hpd_offsets,8,3                ; @hpd_offsets
	.comm	_DC_HPD1_INT_CONTROL__DC_HPD1_INT_POLARITY_MASK,4,2 ; @DC_HPD1_INT_CONTROL__DC_HPD1_INT_POLARITY_MASK
	.no_dead_strip	_dce_v8_0_hpd_set_polarity
.subsections_via_symbols
