	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_hdcp_write_an_aksv
_intel_hdmi_hdcp_write_an_aksv:         ## @intel_hdmi_hdcp_write_an_aksv
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movl	8(%rbx), %esi
	callq	_intel_gmbus_get_adapter
	movq	%rax, %r14
	movq	_DRM_HDCP_DDC_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRM_HDCP_AN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_intel_hdmi_hdcp_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	callq	_intel_gmbus_output_aksv
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movl	%r14d, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_HDCP_DDC_AN,4,2            ## @DRM_HDCP_DDC_AN
	.comm	_DRM_HDCP_AN_LEN,4,2            ## @DRM_HDCP_AN_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write An over DDC failed (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to output aksv (%d)\n"

	.no_dead_strip	_intel_hdmi_hdcp_write_an_aksv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hdmi_hdcp_write_an_aksv
_intel_hdmi_hdcp_write_an_aksv:         ; @intel_hdmi_hdcp_write_an_aksv
	.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, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	w1, [x21, #8]
	bl	_intel_gmbus_get_adapter
	mov	x20, x0
Lloh0:
	adrp	x8, _DRM_HDCP_DDC_AN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_HDCP_DDC_AN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DRM_HDCP_AN_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_HDCP_AN_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_intel_hdmi_hdcp_write
	cbz	w0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_intel_gmbus_output_aksv
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	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
LBB0_6:
	mov	x19, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_HDCP_DDC_AN,4,2            ; @DRM_HDCP_DDC_AN
	.comm	_DRM_HDCP_AN_LEN,4,2            ; @DRM_HDCP_AN_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write An over DDC failed (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to output aksv (%d)\n"

	.no_dead_strip	_intel_hdmi_hdcp_write_an_aksv
.subsections_via_symbols
