	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshiba_bluetooth_sync_status
_toshiba_bluetooth_sync_status:         ## @toshiba_bluetooth_sync_status
	.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	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_toshiba_bluetooth_status
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_BT_KILLSWITCH_MASK@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%dl
	movl	%edx, (%r14)
	movq	_BT_PLUGGED_MASK@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movl	%ecx, 4(%r14)
	movq	_BT_POWER_MASK@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%r8b
	movl	%r8d, 8(%r14)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not sync bluetooth device status\n"

	.comm	_BT_KILLSWITCH_MASK,4,2         ## @BT_KILLSWITCH_MASK
	.comm	_BT_PLUGGED_MASK,4,2            ## @BT_PLUGGED_MASK
	.comm	_BT_POWER_MASK,4,2              ## @BT_POWER_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Bluetooth status %d killswitch %d plugged %d powered %d\n"

	.no_dead_strip	_toshiba_bluetooth_sync_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshiba_bluetooth_sync_status
_toshiba_bluetooth_sync_status:         ; @toshiba_bluetooth_sync_status
	.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	x20, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_toshiba_bluetooth_status
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BT_KILLSWITCH_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_KILLSWITCH_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w2, ne
	str	w2, [x20]
Lloh3:
	adrp	x8, _BT_PLUGGED_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT_PLUGGED_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
Lloh6:
	adrp	x8, _BT_POWER_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT_POWER_MASK@GOTPAGEOFF]
	cset	w3, ne
Lloh8:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w4, ne
	stp	w3, w4, [x20, #4]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	mov	w19, #0
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not sync bluetooth device status\n"

	.comm	_BT_KILLSWITCH_MASK,4,2         ; @BT_KILLSWITCH_MASK
	.comm	_BT_PLUGGED_MASK,4,2            ; @BT_PLUGGED_MASK
	.comm	_BT_POWER_MASK,4,2              ; @BT_POWER_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Bluetooth status %d killswitch %d plugged %d powered %d\n"

	.no_dead_strip	_toshiba_bluetooth_sync_status
.subsections_via_symbols
