	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_register_led
_b43_register_led:                      ## @b43_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
	cmpq	$0, 8(%rsi)
	je	LBB0_3
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rcx, %r13
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, 8(%rsi)
	movl	%r8d, 40(%rsi)
	movl	%r9d, (%rsi)
	movl	32(%rsi), %edi
	movq	%rdx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	leaq	36(%r12), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_atomic_set
	movl	32(%r12), %eax
	leaq	16(%r12), %rsi
	movl	%eax, 28(%r12)
	movq	%r13, 16(%r12)
	movq	_b43_led_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_led_classdev_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_b43warn
	movq	$0, 8(%r12)
	movl	%r13d, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_b43_led_brightness_set,4,2     ## @b43_led_brightness_set
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LEDs: Failed to register %s\n"

	.no_dead_strip	_b43_register_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_register_led
_b43_register_led:                      ; @b43_register_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
	ldr	x8, [x1, #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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x22, x3
	cbz	x3, LBB0_7
; %bb.5:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	str	x8, [x1, #8]
	str	w4, [x1, #40]
	str	w5, [x1]
	ldr	w0, [x1, #32]
	mov	x1, x2
	mov	w2, #4
	bl	_strlcpy
	add	x0, x19, #36
	mov	w1, #0
	bl	_atomic_set
	mov	x1, x19
	str	x22, [x1, #16]!
Lloh2:
	adrp	x8, _b43_led_brightness_set@GOTPAGE
Lloh3:
	ldr	x8, [x8, _b43_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	x0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_b43warn
	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	_b43_led_brightness_set,4,2     ; @b43_led_brightness_set
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LEDs: Failed to register %s\n"

	.no_dead_strip	_b43_register_led
.subsections_via_symbols
