	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cobalt_raq_led_probe
_cobalt_raq_led_probe:                  ## @cobalt_raq_led_probe
	.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	%rdi, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movq	_led_port@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_raq_power_off_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_led_classdev_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	_raq_web_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movq	_raq_power_off_led@GOTPCREL(%rip), %rdi
	callq	_led_classdev_unregister
LBB0_8:
	movq	$0, (%r15)
	jmp	LBB0_9
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_led_port,8,3                   ## @led_port
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_raq_power_off_led,4,2          ## @raq_power_off_led
	.comm	_raq_web_led,4,2                ## @raq_web_led
	.no_dead_strip	_cobalt_raq_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cobalt_raq_led_probe
_cobalt_raq_led_probe:                  ; @cobalt_raq_led_probe
	.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	x19, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w20, [x0]
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_devm_ioremap
Lloh3:
	adrp	x21, _led_port@GOTPAGE
Lloh4:
	ldr	x21, [x21, _led_port@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_7
; %bb.2:
Lloh5:
	adrp	x1, _raq_power_off_led@GOTPAGE
Lloh6:
	ldr	x1, [x1, _raq_power_off_led@GOTPAGEOFF]
	mov	x0, x19
	bl	_led_classdev_register
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
Lloh7:
	adrp	x1, _raq_web_led@GOTPAGE
Lloh8:
	ldr	x1, [x1, _raq_web_led@GOTPAGEOFF]
	mov	x0, x19
	bl	_led_classdev_register
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x0, _raq_power_off_led@GOTPAGE
Lloh10:
	ldr	x0, [x0, _raq_power_off_led@GOTPAGEOFF]
	bl	_led_classdev_unregister
LBB0_5:
	str	xzr, [x21]
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_led_port,8,3                   ; @led_port
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_raq_power_off_led,4,2          ; @raq_power_off_led
	.comm	_raq_web_led,4,2                ; @raq_web_led
	.no_dead_strip	_cobalt_raq_led_probe
.subsections_via_symbols
