	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_dp_aux_transfer
_dm_dp_aux_transfer:                    ## @dm_dp_aux_transfer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	$17, (%rsi)
	setge	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_E2BIG@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_2:
	movl	16(%rbx), %eax
	movl	%eax, -28(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	leaq	8(%rbx), %rax
	movq	%rax, -40(%rbp)
	movl	4(%rbx), %eax
	movq	_DP_AUX_NATIVE_WRITE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sete	%dl
	movq	_DP_AUX_I2C_READ@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sete	%sil
	movq	_DP_AUX_I2C_MOT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	movl	%edx, -60(%rbp)
	movl	%esi, -56(%rbp)
	setne	%dil
	movl	%edi, -52(%rbp)
	movq	$0, -48(%rbp)
	movq	%r14, %rdi
	callq	_TO_DM_AUX
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	callq	_dc_link_aux_transfer_raw
	cmpl	$0, -56(%rbp)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
LBB0_4:
	testl	%eax, %eax
	js	LBB0_5
LBB0_11:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	$-129, %ecx
	addl	-20(%rbp), %ecx
	cmpl	$3, %ecx
	ja	LBB0_11
## %bb.6:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_DP_AUX_NATIVE_WRITE,4,2        ## @DP_AUX_NATIVE_WRITE
	.comm	_DP_AUX_I2C_READ,4,2            ## @DP_AUX_I2C_READ
	.comm	_DP_AUX_I2C_MOT,4,2             ## @DP_AUX_I2C_MOT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_dm_dp_aux_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_dp_aux_transfer
_dm_dp_aux_transfer:                    ; @dm_dp_aux_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #16
	cset	w0, gt
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _E2BIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	ldp	w8, w9, [x19]
Lloh2:
	adrp	x10, _DP_AUX_NATIVE_WRITE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DP_AUX_NATIVE_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
Lloh5:
	adrp	x10, _DP_AUX_I2C_READ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DP_AUX_I2C_READ@GOTPAGEOFF]
	cset	w11, eq
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w10, eq
Lloh8:
	adrp	x12, _DP_AUX_I2C_MOT@GOTPAGE
Lloh9:
	ldr	x12, [x12, _DP_AUX_I2C_MOT@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	tst	w12, w9
	ldur	d0, [x19, #12]
	str	d0, [sp, #40]
	add	x9, x19, #8
	stp	w8, w11, [sp, #8]
	cset	w8, ne
	stp	w10, w8, [sp, #16]
	stp	xzr, x9, [sp, #24]
	mov	x0, x20
	bl	_TO_DM_AUX
	ldr	w0, [x0]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_dc_link_aux_transfer_raw
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w0, [x19]
LBB0_5:
	tbnz	w0, #31, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w8, [sp, #4]
	sub	w8, w8, #129
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.8:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
Lloh15:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
                                        ; -- End function
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_DP_AUX_NATIVE_WRITE,4,2        ; @DP_AUX_NATIVE_WRITE
	.comm	_DP_AUX_I2C_READ,4,2            ; @DP_AUX_I2C_READ
	.comm	_DP_AUX_I2C_MOT,4,2             ; @DP_AUX_I2C_MOT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_dm_dp_aux_transfer
.subsections_via_symbols
