	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_classdev_flash_register_ext ## -- Begin function led_classdev_flash_register_ext
	.p2align	4, 0x90
_led_classdev_flash_register_ext:       ## @led_classdev_flash_register_ext
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_LED_DEV_CAP_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rsi)
	je	LBB0_7
## %bb.3:
	cmpl	$0, 16(%rbx)
	je	LBB0_1
## %bb.4:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.6:
	movq	_led_flash_resume@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_led_flash_init_sysfs_groups
LBB0_7:
	addq	$8, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_led_classdev_register_ext
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LED_DEV_CAP_FLASH,4,2          ## @LED_DEV_CAP_FLASH
	.comm	_led_flash_resume,4,2           ## @led_flash_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_classdev_flash_register_ext ; -- Begin function led_classdev_flash_register_ext
	.p2align	2
_led_classdev_flash_register_ext:       ; @led_classdev_flash_register_ext
	.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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	x21, x1
	ldr	w8, [x21, #8]!
Lloh0:
	adrp	x9, _LED_DEV_CAP_FLASH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LED_DEV_CAP_FLASH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	x8, [x1]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _led_flash_resume@GOTPAGE
Lloh4:
	ldr	x8, [x8, _led_flash_resume@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x1, #12]
	mov	x0, x1
	bl	_led_flash_init_sysfs_groups
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_led_classdev_register_ext
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LED_DEV_CAP_FLASH,4,2          ; @LED_DEV_CAP_FLASH
	.comm	_led_flash_resume,4,2           ; @led_flash_resume
.subsections_via_symbols
