	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dpio_write
_intel_dpio_write:                      ## @intel_dpio_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	_DPIO_PKT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_READ
	movq	_DPIO_BUSY@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	andl	(%r15), %eax
	sete	%dil
	movl	$100, %esi
	callq	_wait_for_atomic_us
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	_DPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_DPIO_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movq	_DPIO_RID@GOTPCREL(%rip), %rax
	movq	_DPIO_OP_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_DPIO_PORTID@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r12), %edi
	movq	_DPIO_BYTE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_I915_WRITE
	movl	(%r12), %edi
	callq	_I915_READ
	xorl	%edi, %edi
	andl	(%r15), %eax
	sete	%dil
	movl	$100, %esi
	callq	_wait_for_atomic_us
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPIO_PKT,4,2                   ## @DPIO_PKT
	.comm	_DPIO_BUSY,4,2                  ## @DPIO_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPIO idle wait timed out\n"

	.comm	_DPIO_DATA,4,2                  ## @DPIO_DATA
	.comm	_DPIO_REG,4,2                   ## @DPIO_REG
	.comm	_DPIO_RID,4,2                   ## @DPIO_RID
	.comm	_DPIO_OP_WRITE,4,2              ## @DPIO_OP_WRITE
	.comm	_DPIO_PORTID,4,2                ## @DPIO_PORTID
	.comm	_DPIO_BYTE,4,2                  ## @DPIO_BYTE
L_.str.1:                               ## @.str.1
	.asciz	"DPIO write wait timed out\n"

	.no_dead_strip	_intel_dpio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dpio_write
_intel_dpio_write:                      ; @intel_dpio_write
	.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	x20, x2
	mov	x19, x1
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh0:
	adrp	x21, _DPIO_PKT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DPIO_PKT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ
Lloh2:
	adrp	x22, _DPIO_BUSY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DPIO_BUSY@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	cset	w0, eq
	mov	w1, #100
	bl	_wait_for_atomic_us
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _DPIO_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPIO_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_I915_WRITE
Lloh9:
	adrp	x8, _DPIO_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPIO_REG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x21]
Lloh12:
	adrp	x8, _DPIO_RID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DPIO_RID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _DPIO_OP_WRITE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DPIO_OP_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _DPIO_PORTID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DPIO_PORTID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _DPIO_BYTE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DPIO_BYTE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_I915_WRITE
	ldr	w0, [x21]
	bl	_I915_READ
	ldr	w8, [x22]
	tst	w8, w0
	cset	w0, eq
	mov	w1, #100
	bl	_wait_for_atomic_us
	cbz	x0, LBB0_5
; %bb.3:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	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
	b	_DRM_ERROR
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DPIO_PKT,4,2                   ; @DPIO_PKT
	.comm	_DPIO_BUSY,4,2                  ; @DPIO_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPIO idle wait timed out\n"

	.comm	_DPIO_DATA,4,2                  ; @DPIO_DATA
	.comm	_DPIO_REG,4,2                   ; @DPIO_REG
	.comm	_DPIO_RID,4,2                   ; @DPIO_RID
	.comm	_DPIO_OP_WRITE,4,2              ; @DPIO_OP_WRITE
	.comm	_DPIO_PORTID,4,2                ; @DPIO_PORTID
	.comm	_DPIO_BYTE,4,2                  ; @DPIO_BYTE
l_.str.1:                               ; @.str.1
	.asciz	"DPIO write wait timed out\n"

	.no_dead_strip	_intel_dpio_write
.subsections_via_symbols
