	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cobalt_qube_led_probe
_cobalt_qube_led_probe:                 ## @cobalt_qube_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -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), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	_LED_FRONT_LEFT@GOTPCREL(%rip), %rcx
	movq	_LED_FRONT_RIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_led_value@GOTPCREL(%rip), %rcx
	movl	%edi, (%rcx)
	movl	%eax, %esi
	callq	_writeb
	movq	_qube_front_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_devm_led_classdev_register     ## TAILCALL
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_4:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_led_port,4,2                   ## @led_port
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LED_FRONT_LEFT,4,2             ## @LED_FRONT_LEFT
	.comm	_LED_FRONT_RIGHT,4,2            ## @LED_FRONT_RIGHT
	.comm	_led_value,4,2                  ## @led_value
	.comm	_qube_front_led,4,2             ## @qube_front_led
	.no_dead_strip	_cobalt_qube_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_qube_led_probe
_cobalt_qube_led_probe:                 ; @cobalt_qube_led_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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_3
; %bb.1:
	ldr	w20, [x0]
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_devm_ioremap
Lloh3:
	adrp	x8, _led_port@GOTPAGE
Lloh4:
	ldr	x8, [x8, _led_port@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
	cbz	w0, LBB0_4
; %bb.2:
	mov	x1, x0
Lloh6:
	adrp	x8, _LED_FRONT_LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_FRONT_LEFT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _LED_FRONT_RIGHT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LED_FRONT_RIGHT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh12:
	adrp	x8, _led_value@GOTPAGE
Lloh13:
	ldr	x8, [x8, _led_value@GOTPAGEOFF]
Lloh14:
	str	w0, [x8]
	bl	_writeb
Lloh15:
	adrp	x1, _qube_front_led@GOTPAGE
Lloh16:
	ldr	x1, [x1, _qube_front_led@GOTPAGEOFF]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_devm_led_classdev_register
LBB0_3:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_led_port,4,2                   ; @led_port
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LED_FRONT_LEFT,4,2             ; @LED_FRONT_LEFT
	.comm	_LED_FRONT_RIGHT,4,2            ; @LED_FRONT_RIGHT
	.comm	_led_value,4,2                  ; @led_value
	.comm	_qube_front_led,4,2             ; @qube_front_led
	.no_dead_strip	_cobalt_qube_led_probe
.subsections_via_symbols
