	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_port_by_ddc_pin
_get_port_by_ddc_pin:                   ## @get_port_by_ddc_pin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PORT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_I915_MAX_PORTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jae	LBB0_6
## %bb.1:
	movq	(%rdi), %rdx
	movq	%rax, %rdi
	shlq	$4, %rdi
	addq	%rdi, %rdx
	addq	$8, %rdx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	addq	$16, %rdx
	cmpl	%eax, %ecx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rsi, -8(%rdx)
	jne	LBB0_2
## %bb.5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movq	_PORT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_I915_MAX_PORTS,4,2             ## @I915_MAX_PORTS
	.comm	_PORT_NONE,4,2                  ## @PORT_NONE
	.no_dead_strip	_get_port_by_ddc_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_port_by_ddc_pin
_get_port_by_ddc_pin:                   ; @get_port_by_ddc_pin
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _PORT_A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_A@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _I915_MAX_PORTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I915_MAX_PORTS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w9
	b.hs	LBB0_6
; %bb.1:
	ldr	x8, [x8]
	add	x8, x8, x0, lsl #4
	add	x8, x8, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w0, w0, #1
	add	x8, x8, #16
	cmp	w9, w0
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x10, [x8, #-8]
	cmp	x10, x1
	b.ne	LBB0_2
; %bb.5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
Lloh6:
	adrp	x8, _PORT_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_I915_MAX_PORTS,4,2             ; @I915_MAX_PORTS
	.comm	_PORT_NONE,4,2                  ; @PORT_NONE
	.no_dead_strip	_get_port_by_ddc_pin
.subsections_via_symbols
