	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshiba_bt_rfkill_add
_toshiba_bt_rfkill_add:                 ## @toshiba_bt_rfkill_add
	.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, %r15
	movl	16(%rdi), %edi
	callq	_toshiba_bluetooth_present
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%r15, 8(%rax)
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_toshiba_bluetooth_sync_status
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_5:
	movq	_RFKILL_TYPE_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	_rfk_ops@GOTPCREL(%rip), %rcx
	movq	%r15, %rsi
	movq	%r14, %r8
	callq	_rfkill_alloc
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	xorl	%esi, %esi
	cmpl	$0, 4(%r14)
	sete	%sil
	movl	%eax, %edi
	callq	_rfkill_set_hw_state
	movl	(%r14), %edi
	callq	_rfkill_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	movl	(%r14), %edi
	callq	_rfkill_destroy
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	movq	%r14, %rdi
	callq	_kfree
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Toshiba ACPI Bluetooth device driver\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Toshiba Bluetooth"

	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ## @RFKILL_TYPE_BLUETOOTH
	.comm	_rfk_ops,4,2                    ## @rfk_ops
L_.str.2:                               ## @.str.2
	.asciz	"Unable to allocate rfkill device\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to register rfkill device\n"

	.no_dead_strip	_toshiba_bt_rfkill_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshiba_bt_rfkill_add
_toshiba_bt_rfkill_add:                 ; @toshiba_bt_rfkill_add
	.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	x20, x0
	ldr	w0, [x0, #16]
	bl	_toshiba_bluetooth_present
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	str	x20, [x0, #8]
	str	x0, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	x0, x19
	bl	_toshiba_bluetooth_sync_status
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
LBB0_4:
	mov	x0, x19
	bl	_kfree
	b	LBB0_10
LBB0_5:
Lloh5:
	adrp	x8, _RFKILL_TYPE_BLUETOOTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RFKILL_TYPE_BLUETOOTH@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh10:
	adrp	x3, _rfk_ops@GOTPAGE
Lloh11:
	ldr	x3, [x3, _rfk_ops@GOTPAGEOFF]
	mov	x1, x20
	mov	x4, x19
	bl	_rfkill_alloc
	str	w0, [x19]
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w1, eq
	bl	_rfkill_set_hw_state
	ldr	w0, [x19]
	bl	_rfkill_register
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.7:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	ldr	w0, [x19]
	bl	_rfkill_destroy
	b	LBB0_4
LBB0_8:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_kfree
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Toshiba ACPI Bluetooth device driver\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Toshiba Bluetooth"

	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ; @RFKILL_TYPE_BLUETOOTH
	.comm	_rfk_ops,4,2                    ; @rfk_ops
l_.str.2:                               ; @.str.2
	.asciz	"Unable to allocate rfkill device\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to register rfkill device\n"

	.no_dead_strip	_toshiba_bt_rfkill_add
.subsections_via_symbols
