	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wistron_led_init
_wistron_led_init:                      ## @wistron_led_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	%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
	movq	%rdi, %r14
	movq	_leds_present@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_FE_WIFI_LED@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.1:
	movq	_WIFI@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_bios_get_default_setting
	testb	$1, %al
	je	LBB0_7
## %bb.2:
	testb	$2, %al
	jne	LBB0_3
## %bb.4:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_LED_FULL@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	_wistron_wifi_led@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_led_classdev_register
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movl	(%rbx), %eax
	notl	%eax
	andl	(%r15), %eax
	movl	%eax, (%r15)
	jmp	LBB0_8
LBB0_6:
	movl	(%r13), %edi
	movq	(%r12), %rsi
	callq	_bios_set_state
	movl	(%r15), %eax
LBB0_8:
	movq	_FE_MAIL_LED@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.9:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_wistron_mail_led@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_led_classdev_register
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_MAIL_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bios_set_state                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_leds_present,4,2               ## @leds_present
	.comm	_FE_WIFI_LED,4,2                ## @FE_WIFI_LED
	.comm	_WIFI,4,2                       ## @WIFI
	.comm	_LED_FULL,8,3                   ## @LED_FULL
	.comm	_LED_OFF,8,3                    ## @LED_OFF
	.comm	_wistron_wifi_led,8,3           ## @wistron_wifi_led
	.comm	_FE_MAIL_LED,4,2                ## @FE_MAIL_LED
	.comm	_wistron_mail_led,8,3           ## @wistron_mail_led
	.comm	_MAIL_LED,4,2                   ## @MAIL_LED
	.no_dead_strip	_wistron_led_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wistron_led_init
_wistron_led_init:                      ; @wistron_led_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _leds_present@GOTPAGE
Lloh1:
	ldr	x21, [x21, _leds_present@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _FE_WIFI_LED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FE_WIFI_LED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
Lloh4:
	adrp	x23, _WIFI@GOTPAGE
Lloh5:
	ldr	x23, [x23, _WIFI@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_bios_get_default_setting
	tbz	w0, #0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _LED_OFF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LED_OFF@GOTPAGEOFF]
	tst	w0, #0x2
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
Lloh10:
	adrp	x20, _wistron_wifi_led@GOTPAGE
Lloh11:
	ldr	x20, [x20, _wistron_wifi_led@GOTPAGEOFF]
	str	x8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_led_classdev_register
	cbz	x0, LBB0_4
LBB0_3:
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x23]
	ldr	x1, [x20]
	bl	_bios_set_state
	ldr	w8, [x21]
LBB0_5:
Lloh12:
	adrp	x22, _FE_MAIL_LED@GOTPAGE
Lloh13:
	ldr	x22, [x22, _FE_MAIL_LED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x20, _wistron_mail_led@GOTPAGE
Lloh18:
	ldr	x20, [x20, _wistron_mail_led@GOTPAGEOFF]
	str	x8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_led_classdev_register
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh19:
	adrp	x8, _MAIL_LED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAIL_LED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x1, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bios_set_state
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_leds_present,4,2               ; @leds_present
	.comm	_FE_WIFI_LED,4,2                ; @FE_WIFI_LED
	.comm	_WIFI,4,2                       ; @WIFI
	.comm	_LED_FULL,8,3                   ; @LED_FULL
	.comm	_LED_OFF,8,3                    ; @LED_OFF
	.comm	_wistron_wifi_led,8,3           ; @wistron_wifi_led
	.comm	_FE_MAIL_LED,4,2                ; @FE_MAIL_LED
	.comm	_wistron_mail_led,8,3           ; @wistron_mail_led
	.comm	_MAIL_LED,4,2                   ; @MAIL_LED
	.no_dead_strip	_wistron_led_init
.subsections_via_symbols
