	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_register_led
_b43legacy_register_led:                ## @b43legacy_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r14d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	%r8d, %esi
	movl	%r9d, %edx
	callq	_b43legacy_led_turn_off
	cmpq	$0, 8(%r13)
	je	LBB0_3
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_4
## %bb.5:
	movq	%r15, 8(%r13)
	movl	%r14d, 36(%r13)
	movl	%ebx, (%r13)
	movl	32(%r13), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	32(%r13), %eax
	leaq	16(%r13), %rsi
	movl	%eax, 28(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r13)
	movq	_b43legacy_led_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_led_classdev_register
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_b43legacywarn
	movq	$0, 8(%r13)
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_b43legacy_led_brightness_set,4,2 ## @b43legacy_led_brightness_set
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LEDs: Failed to register %s\n"

	.no_dead_strip	_b43legacy_register_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_register_led
_b43legacy_register_led:                ; @b43legacy_register_led
	.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	x23, x5
	mov	x24, x4
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x1, x4
	mov	x2, x5
	bl	_b43legacy_led_turn_off
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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
LBB0_4:
	cbz	x22, LBB0_7
; %bb.5:
	str	x21, [x19, #8]
	str	w24, [x19, #36]
	str	w23, [x19]
	ldr	w0, [x19, #32]
	mov	x1, x20
	mov	w2, #4
	bl	_strlcpy
	mov	x1, x19
	str	x22, [x1, #16]!
Lloh2:
	adrp	x8, _b43legacy_led_brightness_set@GOTPAGE
Lloh3:
	ldr	x8, [x8, _b43legacy_led_brightness_set@GOTPAGEOFF]
	ldr	w9, [x19, #32]
Lloh4:
	ldr	w8, [x8]
	stp	w8, w9, [x1, #8]
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_led_classdev_register
	mov	x22, x0
	cbz	w0, LBB0_3
; %bb.6:
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_b43legacywarn
	str	xzr, [x19, #8]
	b	LBB0_3
LBB0_7:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_b43legacy_led_brightness_set,4,2 ; @b43legacy_led_brightness_set
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LEDs: Failed to register %s\n"

	.no_dead_strip	_b43legacy_register_led
.subsections_via_symbols
