	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_algo_dp_aux_xfer
_i2c_algo_dp_aux_xfer:                  ## @i2c_algo_dp_aux_xfer
	.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
	movl	%edx, %ebx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	testl	%edx, %edx
	jle	LBB0_12
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	je	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,8), %r12d
	movl	8(%rcx,%rax,8), %esi
	movq	16(%rcx,%rax,8), %rbx
	movl	(%rdx), %r14d
	xorl	%r13d, %r13d
	andl	4(%rcx,%rax,8), %r14d
	setne	%r13b
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_i2c_algo_dp_aux_address
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_algo_dp_aux_get_byte
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	addq	$4, %rbx
	decq	%r12
	jne	LBB0_6
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%r14,4), %esi
	movq	%r15, %rdi
	callq	_i2c_algo_dp_aux_put_byte
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_10
	jmp	LBB0_2
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_12:
	xorl	%r13d, %r13d
LBB0_17:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_i2c_algo_dp_aux_stop
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_DEBUG_KMS
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dp_aux_xfer return %d\n"

	.no_dead_strip	_i2c_algo_dp_aux_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_algo_dp_aux_xfer
_i2c_algo_dp_aux_xfer:                  ; @i2c_algo_dp_aux_xfer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x0
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x22, x1
	mov	x24, #0
Lloh0:
	adrp	x26, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x26, [x26, _I2C_M_RD@GOTPAGEOFF]
	mov	w27, w19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x24, x27
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
	mov	w8, #24
	madd	x8, x24, x8, x22
	ldr	x23, [x8, #16]
	ldp	w28, w9, [x8]
	ldr	w10, [x26]
	ands	w25, w10, w9
	cset	w21, ne
	ldr	w1, [x8, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_i2c_algo_dp_aux_address
	tbnz	w0, #31, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w28, #1
	cbz	w25, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	b.lt	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x23
	bl	_i2c_algo_dp_aux_get_byte
	tbnz	w0, #31, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x23, x23, #4
	subs	x28, x28, #1
	b.ne	LBB0_6
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	b.lt	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x23]
	mov	x0, x20
	bl	_i2c_algo_dp_aux_put_byte
	tbnz	w0, #31, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x23, x23, #4
	subs	x28, x28, #1
	b.ne	LBB0_9
	b	LBB0_2
LBB0_11:
	mov	x19, x0
	b	LBB0_13
LBB0_12:
	mov	w21, #0
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_algo_dp_aux_stop
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dp_aux_xfer return %d\n"

	.no_dead_strip	_i2c_algo_dp_aux_xfer
.subsections_via_symbols
