	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_intel_sdvo_read_response
_psb_intel_sdvo_read_response:          ## @psb_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
	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, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_SDVO_NAME
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_SDVO_I2C_CMD_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_psb_intel_sdvo_read_byte
	leaq	L_.str.5(%rip), %rdi
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rbx
	movq	$-5, %r15
	movq	_SDVO_CMD_STATUS_PENDING@GOTPCREL(%rip), %r14
	movq	_SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED@GOTPCREL(%rip), %r12
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rsi
	cmpq	(%r14), %rsi
	setne	%al
	cmpq	(%r12), %rsi
	setne	%cl
	testb	%cl, %al
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$15, %edi
	callq	_udelay
	movq	_SDVO_I2C_CMD_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_psb_intel_sdvo_read_byte
	incq	%r15
	testl	%eax, %eax
	jne	LBB0_2
## %bb.5:
	leaq	L_.str.5(%rip), %rdi
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_6:
	movq	_SDVO_CMD_STATUS_SCALING_NOT_SUPP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jbe	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_9
LBB0_8:
	movq	_cmd_status_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rsi,4), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_9:
	movq	%rbx, %r12
	xorl	%r15d, %r15d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rax
	movq	_SDVO_CMD_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.10:
	movl	$1, %r15d
	leaq	L_.str.4(%rip), %rdi
	testl	%edx, %edx
	jle	LBB0_18
## %bb.11:
	movl	%edx, %r14d
	movq	_SDVO_I2C_RETURN_0@GOTPCREL(%rip), %r15
	leaq	L_.str.3(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_psb_intel_sdvo_read_byte
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r12), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	incq	%rbx
	addq	$8, %r12
	cmpq	%rbx, %r14
	jne	LBB0_12
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
	movl	$1, %r15d
	jmp	LBB0_18
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	leaq	L_.str.5(%rip), %rdi
LBB0_18:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	%r15d, %eax
	addq	$24, %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,8,3    ## @SDVO_CMD_STATUS_PENDING
	.comm	_SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED,8,3 ## @SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED
	.comm	_SDVO_CMD_STATUS_SCALING_NOT_SUPP,8,3 ## @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,8,3    ## @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	_psb_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 psb_intel_sdvo_read_response
_psb_intel_sdvo_read_response:          ; @psb_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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_SDVO_NAME
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x22, _SDVO_I2C_CMD_STATUS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SDVO_I2C_CMD_STATUS@GOTPAGEOFF]
	ldr	x1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_psb_intel_sdvo_read_byte
	cbz	w0, LBB0_24
; %bb.1:
	ldr	x8, [sp, #8]
Lloh4:
	adrp	x24, _SDVO_CMD_STATUS_PENDING@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SDVO_CMD_STATUS_PENDING@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh6:
	adrp	x23, _SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
; %bb.2:
	mov	w0, #15
	bl	_udelay
	ldr	x1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_psb_intel_sdvo_read_byte
	cbz	w0, LBB0_24
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	x9, [x24]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
; %bb.4:
	mov	w0, #15
	bl	_udelay
	ldr	x1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_psb_intel_sdvo_read_byte
	cbz	w0, LBB0_24
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_7:
	mov	w0, #15
	bl	_udelay
	ldr	x1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_psb_intel_sdvo_read_byte
	cbz	w0, LBB0_24
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_10:
	mov	w0, #15
	bl	_udelay
	ldr	x1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_psb_intel_sdvo_read_byte
	cbz	w0, LBB0_24
; %bb.11:
	ldr	x8, [sp, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_13:
	mov	w0, #15
	bl	_udelay
	ldr	x1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_psb_intel_sdvo_read_byte
	cbz	w0, LBB0_24
; %bb.14:
	ldr	x8, [sp, #8]
LBB0_15:
Lloh8:
	adrp	x9, _SDVO_CMD_STATUS_SCALING_NOT_SUPP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDVO_CMD_STATUS_SCALING_NOT_SUPP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_17
; %bb.16:
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_17:
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_18:
	bl	_DRM_DEBUG_KMS
	ldr	x8, [sp, #8]
Lloh18:
	adrp	x9, _SDVO_CMD_STATUS_SUCCESS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDVO_CMD_STATUS_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.19:
	cmp	w21, #1
	b.lt	LBB0_26
; %bb.20:
	mov	x23, #0
	mov	w24, w21
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_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x1, x23, x8
	mov	x0, x20
	mov	x2, x19
	bl	_psb_intel_sdvo_read_byte
	cbz	w0, LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x19], #8
	str	x8, [sp]
	mov	x0, x22
	bl	_DRM_DEBUG_KMS
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_21
; %bb.23:
	mov	w19, #1
	mov	x21, x25
	b	LBB0_25
LBB0_24:
	mov	w19, #0
Lloh29:
	adrp	x21, l_.str.5@PAGE
Lloh30:
	add	x21, x21, l_.str.5@PAGEOFF
LBB0_25:
	mov	x0, x21
	bl	_DRM_DEBUG_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
LBB0_26:
	mov	w19, #1
Lloh31:
	adrp	x21, l_.str.4@PAGE
Lloh32:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_27:
	mov	w19, #0
	b	LBB0_25
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	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,8,3    ; @SDVO_CMD_STATUS_PENDING
	.comm	_SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED,8,3 ; @SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED
	.comm	_SDVO_CMD_STATUS_SCALING_NOT_SUPP,8,3 ; @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,8,3    ; @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	_psb_intel_sdvo_read_response
.subsections_via_symbols
