	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auxdev_read_iter
_auxdev_read_iter:                      ## @auxdev_read_iter
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_atomic_inc_not_zero
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_AUX_MAX_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%r13, %rsi
	movq	%r12, %rdi
	callq	_iov_iter_truncate
	movq	%r12, %rdi
	callq	_iov_iter_count
	testq	%rax, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, %r15
	movq	_DP_AUX_MAX_PAYLOAD_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r12, %rdi
	callq	_iov_iter_count
	leal	(,%rbx,4), %esi
	movq	%rax, %rdi
	callq	_min
	movq	%rax, %rbx
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_drm_dp_mst_dpcd_read
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_drm_dp_dpcd_read
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	jle	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_copy_to_iter
	cmpq	%rbx, %rax
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %r13
	movq	%r15, %rsp
	movq	%r12, %rdi
	callq	_iov_iter_count
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_15
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_17
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_5:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_13:
	movq	%r15, %rsp
LBB0_15:
	movq	%r13, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subq	(%rax), %r14
	cmoveq	%rbx, %r14
	movq	%r13, (%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_wake_up_var
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_AUX_MAX_OFFSET,8,3             ## @AUX_MAX_OFFSET
	.comm	_DP_AUX_MAX_PAYLOAD_BYTES,4,2   ## @DP_AUX_MAX_PAYLOAD_BYTES
	.comm	_current,4,2                    ## @current
	.comm	_ERESTARTSYS,8,3                ## @ERESTARTSYS
	.comm	_EFAULT,8,3                     ## @EFAULT
	.no_dead_strip	_auxdev_read_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auxdev_read_iter
_auxdev_read_iter:                      ; @auxdev_read_iter
	.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
	sub	sp, sp, #16
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x21, x8, [x0]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_atomic_inc_not_zero
	cbz	w0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _AUX_MAX_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUX_MAX_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x1, x8, x21
	mov	x0, x22
	bl	_iov_iter_truncate
	mov	x0, x22
	bl	_iov_iter_count
	cbz	x0, LBB0_11
; %bb.2:
Lloh6:
	adrp	x26, _DP_AUX_MAX_PAYLOAD_BYTES@GOTPAGE
Lloh7:
	ldr	x26, [x26, _DP_AUX_MAX_PAYLOAD_BYTES@GOTPAGEOFF]
Lloh8:
	adrp	x27, _current@GOTPAGE
Lloh9:
	ldr	x27, [x27, _current@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, sp
	ldr	w24, [x26]
	lsl	x8, x24, #2
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x22
	bl	_iov_iter_count
	lsl	w1, w24, #2
	bl	_min
	mov	x24, x0
	ldr	w0, [x27]
	bl	_signal_pending
	cbnz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	bl	_drm_dp_mst_dpcd_read
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	bl	_drm_dp_dpcd_read
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_copy_to_iter
	cmp	x0, x24
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x24, x21
	mov	sp, x25
	mov	x0, x22
	bl	_iov_iter_count
	cbnz	x0, LBB0_3
	b	LBB0_16
LBB0_10:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	neg	x22, x8
	b	LBB0_18
LBB0_11:
	mov	x24, #0
	b	LBB0_16
LBB0_12:
Lloh15:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x8, _EFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	neg	x24, x8
LBB0_15:
	mov	sp, x25
LBB0_16:
	ldr	x8, [x20]
	subs	x8, x21, x8
	csel	x22, x24, x8, eq
	str	x21, [x20]
	mov	x0, x19
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_wake_up_var
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x22
	sub	sp, x29, #80
	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
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_AUX_MAX_OFFSET,8,3             ; @AUX_MAX_OFFSET
	.comm	_DP_AUX_MAX_PAYLOAD_BYTES,4,2   ; @DP_AUX_MAX_PAYLOAD_BYTES
	.comm	_current,4,2                    ; @current
	.comm	_ERESTARTSYS,8,3                ; @ERESTARTSYS
	.comm	_EFAULT,8,3                     ; @EFAULT
	.no_dead_strip	_auxdev_read_iter
.subsections_via_symbols
