	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_led_init               ## -- Begin function nouveau_led_init
	.p2align	4, 0x90
_nouveau_led_init:                      ## @nouveau_led_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nouveau_drm
	movq	%rax, %r14
	leaq	8(%rax), %rdi
	callq	_nvxx_gpio
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_DCB_GPIO_LOGO_LED_PWM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%r15d, %r15d
	leaq	-32(%rbp), %r8
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$255, %ecx
	callq	_nvkm_gpio_find
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, 24(%rax)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movl	$255, 8(%rax)
	movq	_nouveau_led_get_brightness@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_nouveau_led_set_brightness@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movl	(%rbx), %edi
	movq	%rax, %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, (%r14)
	movl	%ebx, %r15d
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_GPIO_LOGO_LED_PWM,4,2      ## @DCB_GPIO_LOGO_LED_PWM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvidia-logo"

	.comm	_nouveau_led_get_brightness,4,2 ## @nouveau_led_get_brightness
	.comm	_nouveau_led_set_brightness,4,2 ## @nouveau_led_set_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_led_init               ; -- Begin function nouveau_led_init
	.p2align	2
_nouveau_led_init:                      ; @nouveau_led_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	bl	_nouveau_drm
	mov	x19, x0
	add	x0, x0, #8
	bl	_nvxx_gpio
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _DCB_GPIO_LOGO_LED_PWM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCB_GPIO_LOGO_LED_PWM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #255
	bl	_nvkm_gpio_find
	mov	w21, #0
	cbnz	x0, LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x1, x0
	str	x20, [x0, #24]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	mov	w8, #255
Lloh8:
	adrp	x9, _nouveau_led_get_brightness@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nouveau_led_get_brightness@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [x0, #16]
Lloh11:
	adrp	x9, _nouveau_led_set_brightness@GOTPAGE
Lloh12:
	ldr	x9, [x9, _nouveau_led_set_brightness@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w8, w9, [x0, #8]
	ldr	w0, [x20]
	bl	_led_classdev_register
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_GPIO_LOGO_LED_PWM,4,2      ; @DCB_GPIO_LOGO_LED_PWM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvidia-logo"

	.comm	_nouveau_led_get_brightness,4,2 ; @nouveau_led_get_brightness
	.comm	_nouveau_led_set_brightness,4,2 ; @nouveau_led_set_brightness
.subsections_via_symbols
