	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wistron_probe
_wistron_probe:                         ## @wistron_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
	xorl	%eax, %eax
	callq	_bios_attach
	xorl	%eax, %eax
	callq	_bios_get_cmos_address
	movq	_cmos_address@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_have_wifi@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_WIFI@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_bios_get_default_setting
	testb	$1, %al
	jne	LBB0_3
## %bb.2:
	movq	$0, (%rbx)
	jmp	LBB0_5
LBB0_3:
	andl	$2, %eax
	movq	_wifi_enabled@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_bios_set_state
LBB0_5:
	movq	_have_bluetooth@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.6:
	movq	_BLUETOOTH@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_bios_get_default_setting
	testb	$1, %al
	jne	LBB0_8
## %bb.7:
	movl	$0, (%rbx)
	jmp	LBB0_10
LBB0_8:
	andl	$2, %eax
	movq	_bluetooth_enabled@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_bios_set_state
LBB0_10:
	movq	%r14, %rdi
	callq	_wistron_led_init
	xorl	%eax, %eax
	callq	_setup_input_dev
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_bios_detach
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmos_address,4,2               ## @cmos_address
	.comm	_have_wifi,8,3                  ## @have_wifi
	.comm	_WIFI,4,2                       ## @WIFI
	.comm	_wifi_enabled,4,2               ## @wifi_enabled
	.comm	_have_bluetooth,4,2             ## @have_bluetooth
	.comm	_BLUETOOTH,4,2                  ## @BLUETOOTH
	.comm	_bluetooth_enabled,4,2          ## @bluetooth_enabled
	.no_dead_strip	_wistron_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wistron_probe
_wistron_probe:                         ; @wistron_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
	bl	_bios_attach
	bl	_bios_get_cmos_address
Lloh0:
	adrp	x8, _cmos_address@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmos_address@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x20, _have_wifi@GOTPAGE
Lloh4:
	ldr	x20, [x20, _have_wifi@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.1:
Lloh5:
	adrp	x21, _WIFI@GOTPAGE
Lloh6:
	ldr	x21, [x21, _WIFI@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_bios_get_default_setting
	tbnz	w0, #0, LBB0_3
; %bb.2:
	str	xzr, [x20]
	b	LBB0_5
LBB0_3:
	and	w1, w0, #0x2
Lloh7:
	adrp	x8, _wifi_enabled@GOTPAGE
Lloh8:
	ldr	x8, [x8, _wifi_enabled@GOTPAGEOFF]
Lloh9:
	str	w1, [x8]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x21]
	bl	_bios_set_state
LBB0_5:
Lloh10:
	adrp	x20, _have_bluetooth@GOTPAGE
Lloh11:
	ldr	x20, [x20, _have_bluetooth@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.6:
Lloh12:
	adrp	x21, _BLUETOOTH@GOTPAGE
Lloh13:
	ldr	x21, [x21, _BLUETOOTH@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_bios_get_default_setting
	tbnz	w0, #0, LBB0_8
; %bb.7:
	str	wzr, [x20]
	b	LBB0_10
LBB0_8:
	and	w1, w0, #0x2
Lloh14:
	adrp	x8, _bluetooth_enabled@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bluetooth_enabled@GOTPAGEOFF]
Lloh16:
	str	w1, [x8]
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	w0, [x21]
	bl	_bios_set_state
LBB0_10:
	mov	x0, x19
	bl	_wistron_led_init
	bl	_setup_input_dev
	mov	x19, x0
	cbz	w0, LBB0_12
; %bb.11:
	bl	_bios_detach
LBB0_12:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_cmos_address,4,2               ; @cmos_address
	.comm	_have_wifi,8,3                  ; @have_wifi
	.comm	_WIFI,4,2                       ; @WIFI
	.comm	_wifi_enabled,4,2               ; @wifi_enabled
	.comm	_have_bluetooth,4,2             ; @have_bluetooth
	.comm	_BLUETOOTH,4,2                  ; @BLUETOOTH
	.comm	_bluetooth_enabled,4,2          ; @bluetooth_enabled
	.no_dead_strip	_wistron_probe
.subsections_via_symbols
