	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_read_response
_intel_sdvo_read_response:              ## @intel_sdvo_read_response
	.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	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_SDVO_NAME
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	_SDVO_I2C_CMD_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_intel_sdvo_read_byte
	xorl	%r14d, %r14d
	leaq	L_.str.5(%rip), %rdi
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	$15, %r15d
	movq	_SDVO_CMD_STATUS_PENDING@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_udelay
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SDVO_I2C_CMD_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_intel_sdvo_read_byte
	decl	%r15d
	testl	%eax, %eax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	-44(%rbp), %rsi
	cmpl	(%r14), %esi
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %r15d
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$15, %edi
	cmpl	$10, %r15d
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_msleep
	jmp	LBB0_7
LBB0_9:
	movq	_SDVO_CMD_STATUS_SCALING_NOT_SUPP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jle	LBB0_10
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_12
LBB0_10:
	movq	_cmd_status_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rsi,4), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_12:
	xorl	%eax, %eax
	callq	_DRM_LOG_KMS
	xorl	%r14d, %r14d
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %eax
	movq	_SDVO_CMD_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.5(%rip), %rdi
	jne	LBB0_18
## %bb.13:
	movl	$1, %r14d
	leaq	L_.str.4(%rip), %rdi
	testl	%edx, %edx
	jle	LBB0_18
## %bb.14:
	movl	%edx, %r15d
	movq	_SDVO_I2C_RETURN_0@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_intel_sdvo_read_byte
	testl	%eax, %eax
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_LOG_KMS
	incq	%r13
	addq	$4, %rbx
	cmpq	%r13, %r15
	jne	LBB0_15
## %bb.17:
	leaq	L_.str.4(%rip), %rdi
	movl	$1, %r14d
	jmp	LBB0_18
LBB0_8:
	xorl	%r14d, %r14d
	leaq	L_.str.5(%rip), %rdi
LBB0_18:
	xorl	%eax, %eax
	callq	_DRM_LOG_KMS
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: R: "

	.comm	_SDVO_I2C_CMD_STATUS,8,3        ## @SDVO_I2C_CMD_STATUS
	.comm	_SDVO_CMD_STATUS_PENDING,4,2    ## @SDVO_CMD_STATUS_PENDING
	.comm	_SDVO_CMD_STATUS_SCALING_NOT_SUPP,4,2 ## @SDVO_CMD_STATUS_SCALING_NOT_SUPP
L_.str.1:                               ## @.str.1
	.asciz	"(%s)"

	.comm	_cmd_status_names,8,3           ## @cmd_status_names
L_.str.2:                               ## @.str.2
	.asciz	"(??? %d)"

	.comm	_SDVO_CMD_STATUS_SUCCESS,4,2    ## @SDVO_CMD_STATUS_SUCCESS
	.comm	_SDVO_I2C_RETURN_0,8,3          ## @SDVO_I2C_RETURN_0
L_.str.3:                               ## @.str.3
	.asciz	" %02X"

L_.str.4:                               ## @.str.4
	.asciz	"\n"

L_.str.5:                               ## @.str.5
	.asciz	"... failed\n"

	.no_dead_strip	_intel_sdvo_read_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_read_response
_intel_sdvo_read_response:              ; @intel_sdvo_read_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_SDVO_NAME
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x23, _SDVO_I2C_CMD_STATUS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SDVO_I2C_CMD_STATUS@GOTPAGEOFF]
	ldr	x1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_intel_sdvo_read_byte
	cbz	w0, LBB0_16
; %bb.1:
	mov	w24, #15
Lloh4:
	adrp	x25, _SDVO_CMD_STATUS_PENDING@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SDVO_CMD_STATUS_PENDING@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.5@PAGE
Lloh7:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_udelay
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_intel_sdvo_read_byte
	sub	w24, w24, #1
	cbz	w0, LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [sp, #12]
	ldr	w9, [x25]
	cmp	w8, w9
	ccmp	w24, #1, #4, eq
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #15
	cmp	w24, #10
	b.hi	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_msleep
	b	LBB0_3
LBB0_7:
Lloh8:
	adrp	x9, _SDVO_CMD_STATUS_SCALING_NOT_SUPP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDVO_CMD_STATUS_SCALING_NOT_SUPP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_9
; %bb.8:
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x9, _cmd_status_names@GOTPAGE
Lloh14:
	ldr	x9, [x9, _cmd_status_names@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_DRM_LOG_KMS
	ldr	w8, [sp, #12]
Lloh18:
	adrp	x9, _SDVO_CMD_STATUS_SUCCESS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDVO_CMD_STATUS_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.11:
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.12:
	mov	x23, #0
	mov	w24, w22
Lloh21:
	adrp	x26, _SDVO_I2C_RETURN_0@GOTPAGE
Lloh22:
	ldr	x26, [x26, _SDVO_I2C_RETURN_0@GOTPAGEOFF]
Lloh23:
	adrp	x21, l_.str.5@PAGE
Lloh24:
	add	x21, x21, l_.str.5@PAGEOFF
Lloh25:
	adrp	x22, l_.str.3@PAGE
Lloh26:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh27:
	adrp	x25, l_.str.4@PAGE
Lloh28:
	add	x25, x25, l_.str.4@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x1, x23, x8
	mov	x0, x20
	mov	x2, x19
	bl	_intel_sdvo_read_byte
	cbz	w0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x19], #4
	str	x8, [sp]
	mov	x0, x22
	bl	_DRM_LOG_KMS
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_13
; %bb.15:
	mov	w19, #1
	mov	x21, x25
	b	LBB0_19
LBB0_16:
	mov	w19, #0
Lloh29:
	adrp	x21, l_.str.5@PAGE
Lloh30:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_17:
	mov	w19, #0
	b	LBB0_19
LBB0_18:
	mov	w19, #1
Lloh31:
	adrp	x21, l_.str.4@PAGE
Lloh32:
	add	x21, x21, l_.str.4@PAGEOFF
LBB0_19:
	mov	x0, x21
	bl	_DRM_LOG_KMS
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: R: "

	.comm	_SDVO_I2C_CMD_STATUS,8,3        ; @SDVO_I2C_CMD_STATUS
	.comm	_SDVO_CMD_STATUS_PENDING,4,2    ; @SDVO_CMD_STATUS_PENDING
	.comm	_SDVO_CMD_STATUS_SCALING_NOT_SUPP,4,2 ; @SDVO_CMD_STATUS_SCALING_NOT_SUPP
l_.str.1:                               ; @.str.1
	.asciz	"(%s)"

	.comm	_cmd_status_names,8,3           ; @cmd_status_names
l_.str.2:                               ; @.str.2
	.asciz	"(??? %d)"

	.comm	_SDVO_CMD_STATUS_SUCCESS,4,2    ; @SDVO_CMD_STATUS_SUCCESS
	.comm	_SDVO_I2C_RETURN_0,8,3          ; @SDVO_I2C_RETURN_0
l_.str.3:                               ; @.str.3
	.asciz	" %02X"

l_.str.4:                               ; @.str.4
	.asciz	"\n"

l_.str.5:                               ; @.str.5
	.asciz	"... failed\n"

	.no_dead_strip	_intel_sdvo_read_response
.subsections_via_symbols
