	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_nasgpio_led
_register_nasgpio_led:                  ## @register_nasgpio_led
	.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	_nasgpio_leds@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%edi, %r14
	movl	%r14d, %edi
	callq	_get_classdev_for_led_nr
	movq	%rax, %rbx
	movl	(%r15,%r14,4), %eax
	movl	%eax, 16(%rbx)
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_GP_LVL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nasgpio_led_get_attr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
LBB0_2:
	movq	_nasgpio_led_set_brightness@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_nasgpio_led_set_blink@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_nasgpio_led_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_nas_gpio_pci_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_led_classdev_register          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nasgpio_leds,8,3               ## @nasgpio_leds
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_GP_LVL,4,2                     ## @GP_LVL
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_nasgpio_led_set_brightness,4,2 ## @nasgpio_led_set_brightness
	.comm	_nasgpio_led_set_blink,4,2      ## @nasgpio_led_set_blink
	.comm	_nasgpio_led_groups,4,2         ## @nasgpio_led_groups
	.comm	_nas_gpio_pci_dev,8,3           ## @nas_gpio_pci_dev
	.no_dead_strip	_register_nasgpio_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_nasgpio_led
_register_nasgpio_led:                  ; @register_nasgpio_led
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _nasgpio_leds@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nasgpio_leds@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_get_classdev_for_led_nr
	mov	x19, x0
	ldr	w8, [x21, w20, sxtw #2]
Lloh3:
	adrp	x9, _LED_OFF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LED_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
Lloh6:
	adrp	x8, _GP_LVL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GP_LVL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_nasgpio_led_get_attr
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_2:
Lloh12:
	adrp	x8, _nasgpio_led_set_brightness@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nasgpio_led_set_brightness@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _nasgpio_led_set_blink@GOTPAGE
Lloh16:
	ldr	x9, [x9, _nasgpio_led_set_blink@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh17:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _nasgpio_led_groups@GOTPAGE
Lloh19:
	ldr	x9, [x9, _nasgpio_led_groups@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
Lloh21:
	adrp	x8, _nas_gpio_pci_dev@GOTPAGE
Lloh22:
	ldr	x8, [x8, _nas_gpio_pci_dev@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_led_classdev_register
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_nasgpio_leds,8,3               ; @nasgpio_leds
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_GP_LVL,4,2                     ; @GP_LVL
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_nasgpio_led_set_brightness,4,2 ; @nasgpio_led_set_brightness
	.comm	_nasgpio_led_set_blink,4,2      ; @nasgpio_led_set_blink
	.comm	_nasgpio_led_groups,4,2         ; @nasgpio_led_groups
	.comm	_nas_gpio_pci_dev,8,3           ; @nas_gpio_pci_dev
	.no_dead_strip	_register_nasgpio_led
.subsections_via_symbols
