	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6e63m0_backlight_register
_s6e63m0_backlight_register:            ## @s6e63m0_backlight_register
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MAX_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%eax, -28(%rbp)
	movq	_BACKLIGHT_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	8(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	_s6e63m0_backlight_ops@GOTPCREL(%rip), %r8
	leaq	-32(%rbp), %r9
	movq	%r14, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_devm_backlight_device_register
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BRIGHTNESS,4,2             ## @MAX_BRIGHTNESS
	.comm	_BACKLIGHT_RAW,4,2              ## @BACKLIGHT_RAW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"panel"

	.comm	_s6e63m0_backlight_ops,4,2      ## @s6e63m0_backlight_ops
L_.str.1:                               ## @.str.1
	.asciz	"error registering backlight device (%d)\n"

	.no_dead_strip	_s6e63m0_backlight_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6e63m0_backlight_register
_s6e63m0_backlight_register:            ; @s6e63m0_backlight_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _MAX_BRIGHTNESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_BRIGHTNESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w8, [sp]
Lloh3:
	adrp	x8, _BACKLIGHT_RAW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BACKLIGHT_RAW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x19, [x0, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
Lloh8:
	adrp	x4, _s6e63m0_backlight_ops@GOTPAGE
Lloh9:
	ldr	x4, [x4, _s6e63m0_backlight_ops@GOTPAGEOFF]
	mov	x5, sp
	mov	x0, x19
	mov	x2, x19
	mov	x3, x20
	bl	_devm_backlight_device_register
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_PTR_ERR
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_DRM_DEV_ERROR
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BRIGHTNESS,4,2             ; @MAX_BRIGHTNESS
	.comm	_BACKLIGHT_RAW,4,2              ; @BACKLIGHT_RAW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"panel"

	.comm	_s6e63m0_backlight_ops,4,2      ; @s6e63m0_backlight_ops
l_.str.1:                               ; @.str.1
	.asciz	"error registering backlight device (%d)\n"

	.no_dead_strip	_s6e63m0_backlight_register
.subsections_via_symbols
