	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_driver_init                ## -- Begin function led_driver_init
	.p2align	4, 0x90
_led_driver_init:                       ## @led_driver_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rbx
LBB0_2:
	testq	%rbx, %rbx
	leaq	L_.str(%rip), %rsi
	cmovneq	%rbx, %rsi
	movq	_null_led_driver@GOTPCREL(%rip), %rdx
	movq	_current_led_driver@GOTPCREL(%rip), %rbx
	movq	%rdx, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_LOG
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	*(%rcx)
LBB0_4:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"null"

	.comm	_null_led_driver,8,3            ## @null_led_driver
	.comm	_current_led_driver,8,3         ## @current_led_driver
L_.str.1:                               ## @.str.1
	.asciz	"[LED]: LED driver = '%s' %p\n"

	.comm	_overlay_led_driver,8,3         ## @overlay_led_driver
	.comm	_rpi_led_driver,8,3             ## @rpi_led_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_driver_init                ; -- Begin function led_driver_init
	.p2align	2
_led_driver_init:                       ; @led_driver_init
	.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
	bl	_config_get_ptr
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x1, x9, x8, eq
Lloh2:
	adrp	x19, _current_led_driver@GOTPAGE
Lloh3:
	ldr	x19, [x19, _current_led_driver@GOTPAGEOFF]
Lloh4:
	adrp	x2, _null_led_driver@GOTPAGE
Lloh5:
	ldr	x2, [x2, _null_led_driver@GOTPAGEOFF]
	str	x2, [x19]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_LOG
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x8]
	blr	x8
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"null"

	.comm	_null_led_driver,8,3            ; @null_led_driver
	.comm	_current_led_driver,8,3         ; @current_led_driver
l_.str.1:                               ; @.str.1
	.asciz	"[LED]: LED driver = '%s' %p\n"

	.comm	_overlay_led_driver,8,3         ; @overlay_led_driver
	.comm	_rpi_led_driver,8,3             ; @rpi_led_driver
.subsections_via_symbols
