	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_hdcp_write
_intel_hdmi_hdcp_write:                 ## @intel_hdmi_hdcp_write
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	8(%rdi), %esi
	movq	%rax, %rdi
	callq	_intel_gmbus_get_adapter
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	1(%r14), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movzbl	%r15b, %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	_DRM_HDCP_DDC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	%r13, -80(%rbp)
	movq	%r12, -72(%rbp)
	leaq	-80(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_i2c_transfer
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	je	LBB0_6
## %bb.3:
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %ebx
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_HDCP_DDC_ADDR,4,2          ## @DRM_HDCP_DDC_ADDR
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_intel_hdmi_hdcp_write
.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
_intel_hdmi_hdcp_write:                 ; @intel_hdmi_hdcp_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w1, [x0, #8]
	mov	x0, x8
	bl	_intel_gmbus_get_adapter
	mov	x20, x0
	add	x23, x21, #1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	and	w8, w24, #0xff
	str	w8, [x0], #4
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
Lloh3:
	adrp	x8, _DRM_HDCP_DDC_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_HDCP_DDC_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	stp	x19, xzr, [sp, #8]
	str	x23, [sp]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_kfree
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_HDCP_DDC_ADDR,4,2          ; @DRM_HDCP_DDC_ADDR
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_intel_hdmi_hdcp_write
.subsections_via_symbols
