	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_set_backlight_level    ## -- Begin function dc_link_set_backlight_level
	.p2align	4, 0x90
_dc_link_set_backlight_level:           ## @dc_link_set_backlight_level
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	8(%rax), %r13
	movq	8(%r13), %rcx
	movq	(%rcx), %r14
	movq	8(%rcx), %r12
	movl	(%rax), %edi
	callq	_DC_LOGGER_INIT
	xorl	%ecx, %ecx
	testq	%r14, %r14
	je	LBB0_12
## %bb.1:
	testq	%r12, %r12
	je	LBB0_12
## %bb.2:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %r14d
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_DC_LOG_BACKLIGHT
	movl	(%r15), %edi
	callq	_dc_is_embedded_signal
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	_MAX_PIPES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.6:
	movq	(%r13), %rax
	movq	(%rax), %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$24, %rdi
	cmpq	%rdi, %rbx
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax,%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r15, (%rsi)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rax,%rdi), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	cmpq	$0, (%rax,%rdi)
	cmovel	%r8d, %edx
	jmp	LBB0_10
LBB0_5:
	xorl	%ecx, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movl	%r14d, %esi
	movl	%r12d, %r8d
	callq	*(%rax)
	movl	$1, %ecx
LBB0_12:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"New Backlight level: %d (0x%X)\n"

	.comm	_MAX_PIPES,4,2                  ## @MAX_PIPES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_set_backlight_level    ; -- Begin function dc_link_set_backlight_level
	.p2align	2
_dc_link_set_backlight_level:           ; @dc_link_set_backlight_level
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x24, [x8, #8]
	ldr	x9, [x24, #8]
	ldp	x23, x21, [x9]
	ldr	w0, [x8]
	bl	_DC_LOGGER_INIT
	cmp	x23, #0
	ccmp	x21, #0, #4, ne
	b.eq	LBB0_9
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x23
	blr	x8
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x20
	bl	_DC_LOG_BACKLIGHT
	ldr	w0, [x22]
	bl	_dc_is_embedded_signal
	cbz	x0, LBB0_12
; %bb.3:
Lloh2:
	adrp	x8, _MAX_PIPES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_PIPES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	w3, #0
	ldr	x9, [x24]
	ldr	x9, [x9]
	add	x9, x9, #16
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x10]
	cmp	x10, x22
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x11, x10, [x9, #-16]
	ldr	w10, [x10]
	add	w3, w10, #1
	cmp	x11, #0
	csel	w19, wzr, w19, eq
	b	LBB0_5
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	mov	w3, #0
LBB0_11:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x4, x23
	blr	x8
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"New Backlight level: %d (0x%X)\n"

	.comm	_MAX_PIPES,4,2                  ; @MAX_PIPES
.subsections_via_symbols
