	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_register_led
_p54_register_led:                      ## @p54_register_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	%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	8(%rdi), %r14
	movl	%esi, %eax
	leaq	(%rax,%rax,4), %r13
	cmpl	$0, (%r14,%r13,8)
	je	LBB0_2
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	24(%r14,%r13,8), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movq	%rdx, %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_wiphy_name
	leaq	L_.str(%rip), %rdx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %esi
	movq	%rax, %rcx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r8
	callq	_snprintf
	movq	(%r12), %rax
	movq	%rax, 32(%r14,%r13,8)
	movl	%ebx, 4(%r14,%r13,8)
	movl	24(%r14,%r13,8), %ecx
	leaq	8(%r14,%r13,8), %rbx
	movl	%ecx, 20(%r14,%r13,8)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%r14,%r13,8)
	movq	_p54_led_brightness_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r14,%r13,8)
	movl	(%rax), %edi
	callq	_wiphy_dev
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_wiphy_err
	jmp	LBB0_5
LBB0_4:
	leaq	(%r14,%r13,8), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p54-%s::%s"

	.comm	_p54_led_brightness_set,4,2     ## @p54_led_brightness_set
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register %s LED.\n"

	.no_dead_strip	_p54_register_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_register_led
_p54_register_led:                      ; @p54_register_led
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #8]
	mov	w9, #40
	umaddl	x24, w1, w9, x8
	ldr	w9, [x24]
	cbz	w9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_2:
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w9, w1
	mov	w10, #40
	madd	x25, x9, x10, x8
	ldr	w23, [x25, #24]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_wiphy_name
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	w1, #4
	mov	x4, x19
	bl	_snprintf
	ldr	x8, [x20]
	mov	x23, x25
	str	x22, [x23, #8]!
	str	x8, [x23, #24]
	stur	w21, [x23, #-4]
	ldr	w9, [x25, #24]
	str	w9, [x23, #12]
Lloh5:
	adrp	x9, _p54_led_brightness_set@GOTPAGE
Lloh6:
	ldr	x9, [x9, _p54_led_brightness_set@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x23, #8]
	ldr	w0, [x8]
	bl	_wiphy_dev
	mov	x1, x23
	bl	_led_classdev_register
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_wiphy_err
	b	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x24]
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p54-%s::%s"

	.comm	_p54_led_brightness_set,4,2     ; @p54_led_brightness_set
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register %s LED.\n"

	.no_dead_strip	_p54_register_led
.subsections_via_symbols
