	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshiba_acpi_setup_wwan_rfkill
_toshiba_acpi_setup_wwan_rfkill:        ## @toshiba_acpi_setup_wwan_rfkill
	.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
	callq	_toshiba_wireless_status
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r14), %rsi
	movq	_RFKILL_TYPE_WWAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movq	_wwan_rfk_ops@GOTPCREL(%rip), %rcx
	movq	%r14, %r8
	callq	_rfkill_alloc
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	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_4
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	movl	(%r14), %edi
	callq	_rfkill_destroy
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Toshiba WWAN"

	.comm	_RFKILL_TYPE_WWAN,4,2           ## @RFKILL_TYPE_WWAN
	.comm	_wwan_rfk_ops,4,2               ## @wwan_rfk_ops
L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate WWAN rfkill device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Unable to register WWAN rfkill device\n"

	.no_dead_strip	_toshiba_acpi_setup_wwan_rfkill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshiba_acpi_setup_wwan_rfkill
_toshiba_acpi_setup_wwan_rfkill:        ; @toshiba_acpi_setup_wwan_rfkill
	.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	x19, x0
	bl	_toshiba_wireless_status
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x1, [x19, #8]
Lloh0:
	adrp	x8, _RFKILL_TYPE_WWAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFKILL_TYPE_WWAN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x3, _wwan_rfk_ops@GOTPAGE
Lloh6:
	ldr	x3, [x3, _wwan_rfk_ops@GOTPAGEOFF]
	mov	x4, x19
	bl	_rfkill_alloc
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w1, eq
	bl	_rfkill_set_hw_state
	ldr	w0, [x19]
	bl	_rfkill_register
	mov	x20, x0
	cbz	w0, LBB0_1
; %bb.4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	ldr	w0, [x19]
	bl	_rfkill_destroy
	b	LBB0_1
LBB0_5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Toshiba WWAN"

	.comm	_RFKILL_TYPE_WWAN,4,2           ; @RFKILL_TYPE_WWAN
	.comm	_wwan_rfk_ops,4,2               ; @wwan_rfk_ops
l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate WWAN rfkill device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Unable to register WWAN rfkill device\n"

	.no_dead_strip	_toshiba_acpi_setup_wwan_rfkill
.subsections_via_symbols
