	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_dp_aux_native_write
_radeon_dp_aux_native_write:            ## @radeon_dp_aux_native_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %eax
	cmpl	$16, %ecx
	jg	LBB0_1
## %bb.3:
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movq	(%rdi), %r12
	leal	4(%rbx), %r15d
	movl	%esi, -128(%rbp)
	sarl	$8, %esi
	movl	%esi, -124(%rbp)
	movq	_AUX_NATIVE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	movl	%eax, -120(%rbp)
	movl	%r15d, %eax
	shll	$4, %eax
	leal	-1(%rbx), %ecx
	orl	%eax, %ecx
	movl	%ecx, -116(%rbp)
	leaq	-112(%rbp), %rdi
	movq	%rdx, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	(%r12), %edi
	leaq	-132(%rbp), %r13
	movq	%r13, (%rsp)
	leaq	-128(%rbp), %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	callq	_radeon_process_aux_ch
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_8
LBB0_4:
	movl	(%r12), %edi
	movq	%r13, (%rsp)
	leaq	-128(%rbp), %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	callq	_radeon_process_aux_ch
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_11
LBB0_5:
	movl	(%r12), %edi
	movq	%r13, (%rsp)
	leaq	-128(%rbp), %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	callq	_radeon_process_aux_ch
	movq	_EBUSY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	addl	%eax, %ecx
	jne	LBB0_14
LBB0_6:
	movl	(%r12), %edi
	movq	%r13, (%rsp)
	xorl	%r12d, %r12d
	leaq	-128(%rbp), %rsi
	movq	%rdx, %r13
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	callq	_radeon_process_aux_ch
	movl	(%r13), %ecx
	addl	%eax, %ecx
	jne	LBB0_19
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %eax
	jmp	LBB0_1
LBB0_8:
	testl	%eax, %eax
	js	LBB0_1
## %bb.9:
	movq	_AUX_NATIVE_REPLY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-132(%rbp), %eax
	movq	_AUX_NATIVE_REPLY_ACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.17:
	movq	_AUX_NATIVE_REPLY_DEFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.18:
	movl	$400, %edi                      ## imm = 0x190
	callq	_udelay
	jmp	LBB0_4
LBB0_11:
	testl	%eax, %eax
	js	LBB0_1
## %bb.12:
	movq	_AUX_NATIVE_REPLY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-132(%rbp), %eax
	movq	_AUX_NATIVE_REPLY_ACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.23:
	movq	_AUX_NATIVE_REPLY_DEFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.24:
	movl	$400, %edi                      ## imm = 0x190
	callq	_udelay
	jmp	LBB0_5
LBB0_14:
	testl	%eax, %eax
	js	LBB0_1
## %bb.15:
	movq	_AUX_NATIVE_REPLY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-132(%rbp), %eax
	movq	_AUX_NATIVE_REPLY_ACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
LBB0_10:
	movl	%ebx, %eax
	jmp	LBB0_1
LBB0_19:
	testl	%eax, %eax
	js	LBB0_1
## %bb.20:
	movq	_AUX_NATIVE_REPLY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	-132(%rbp), %ecx
	movq	_AUX_NATIVE_REPLY_ACK@GOTPCREL(%rip), %rdx
	movl	%ebx, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_1
## %bb.21:
	movq	_AUX_NATIVE_REPLY_DEFER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_27
## %bb.22:
	movl	$400, %edi                      ## imm = 0x190
	callq	_udelay
	jmp	LBB0_7
LBB0_25:
	movq	_AUX_NATIVE_REPLY_DEFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.26:
	movl	$400, %edi                      ## imm = 0x190
	callq	_udelay
	movq	_EBUSY@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_27:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.2:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AUX_NATIVE_WRITE,4,2           ## @AUX_NATIVE_WRITE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_AUX_NATIVE_REPLY_MASK,4,2      ## @AUX_NATIVE_REPLY_MASK
	.comm	_AUX_NATIVE_REPLY_ACK,4,2       ## @AUX_NATIVE_REPLY_ACK
	.comm	_AUX_NATIVE_REPLY_DEFER,4,2     ## @AUX_NATIVE_REPLY_DEFER
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_radeon_dp_aux_native_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_dp_aux_native_write
_radeon_dp_aux_native_write:            ; @radeon_dp_aux_native_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w3, #16
	b.le	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_24
LBB0_2:
	mov	x20, x4
	mov	x19, x3
	ldr	x22, [x0]
	add	w21, w3, #4
	asr	w8, w1, #8
	stp	w1, w8, [sp, #8]
Lloh3:
	adrp	x8, _AUX_NATIVE_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUX_NATIVE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #4
	sub	w9, w3, #1
	orr	w9, w9, w21, lsl #4
	stp	w8, w9, [sp, #16]
	add	x8, sp, #8
	add	x0, x8, #16
	mov	x1, x2
	mov	x2, x3
	bl	_memcpy
	ldr	w0, [x22]
	add	x1, sp, #8
	add	x6, sp, #4
	mov	x2, x21
	mov	x3, #0
	mov	w4, #0
	mov	x5, x20
	bl	_radeon_process_aux_ch
Lloh6:
	adrp	x23, _EBUSY@GOTPAGE
Lloh7:
	ldr	x23, [x23, _EBUSY@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_10
LBB0_3:
	ldr	w0, [x22]
	add	x1, sp, #8
	add	x6, sp, #4
	mov	x2, x21
	mov	x3, #0
	mov	w4, #0
	mov	x5, x20
	bl	_radeon_process_aux_ch
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_14
LBB0_4:
	ldr	w0, [x22]
	add	x1, sp, #8
	add	x6, sp, #4
	mov	x2, x21
	mov	x3, #0
	mov	w4, #0
	mov	x5, x20
	bl	_radeon_process_aux_ch
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_18
LBB0_5:
	ldr	w0, [x22]
	add	x1, sp, #8
	add	x6, sp, #4
	mov	x2, x21
	mov	x3, #0
	mov	w4, #0
	mov	x5, x20
	bl	_radeon_process_aux_ch
	ldr	w8, [x23]
	cmn	w0, w8
	b.eq	LBB0_23
; %bb.6:
	tbnz	w0, #31, LBB0_24
; %bb.7:
	ldr	w8, [sp, #4]
Lloh8:
	adrp	x9, _AUX_NATIVE_REPLY_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh11:
	adrp	x9, _AUX_NATIVE_REPLY_ACK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_ACK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.eq	LBB0_24
; %bb.8:
Lloh14:
	adrp	x9, _AUX_NATIVE_REPLY_DEFER@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_DEFER@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.9:
	mov	w0, #400
	bl	_udelay
	b	LBB0_23
LBB0_10:
	tbnz	w0, #31, LBB0_24
; %bb.11:
	ldr	w8, [sp, #4]
Lloh17:
	adrp	x9, _AUX_NATIVE_REPLY_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh20:
	adrp	x9, _AUX_NATIVE_REPLY_ACK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_ACK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.12:
Lloh23:
	adrp	x9, _AUX_NATIVE_REPLY_DEFER@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_DEFER@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.13:
	mov	w0, #400
	bl	_udelay
	b	LBB0_3
LBB0_14:
	tbnz	w0, #31, LBB0_24
; %bb.15:
	ldr	w8, [sp, #4]
Lloh26:
	adrp	x9, _AUX_NATIVE_REPLY_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh29:
	adrp	x9, _AUX_NATIVE_REPLY_ACK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_ACK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.16:
Lloh32:
	adrp	x9, _AUX_NATIVE_REPLY_DEFER@GOTPAGE
Lloh33:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_DEFER@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.17:
	mov	w0, #400
	bl	_udelay
	b	LBB0_4
LBB0_18:
	tbnz	w0, #31, LBB0_24
; %bb.19:
	ldr	w8, [sp, #4]
Lloh35:
	adrp	x9, _AUX_NATIVE_REPLY_MASK@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh38:
	adrp	x9, _AUX_NATIVE_REPLY_ACK@GOTPAGE
Lloh39:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_ACK@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
LBB0_20:
	mov	x0, x19
	b	LBB0_24
LBB0_21:
Lloh41:
	adrp	x9, _AUX_NATIVE_REPLY_DEFER@GOTPAGE
Lloh42:
	ldr	x9, [x9, _AUX_NATIVE_REPLY_DEFER@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.22:
	mov	w0, #400
	bl	_udelay
	b	LBB0_5
LBB0_23:
Lloh44:
	adrp	x8, _EIO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	ldur	x8, [x29, #-56]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_AUX_NATIVE_WRITE,4,2           ; @AUX_NATIVE_WRITE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_AUX_NATIVE_REPLY_MASK,4,2      ; @AUX_NATIVE_REPLY_MASK
	.comm	_AUX_NATIVE_REPLY_ACK,4,2       ; @AUX_NATIVE_REPLY_ACK
	.comm	_AUX_NATIVE_REPLY_DEFER,4,2     ; @AUX_NATIVE_REPLY_DEFER
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_radeon_dp_aux_native_write
.subsections_via_symbols
