	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_nc_setup_rfkill
_sony_nc_setup_rfkill:                  ## @sony_nc_setup_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	%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
                                        ## kill: def $esi killed $esi def $rsi
	leal	-128(%rsi), %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.3:
	movq	%rdi, %rax
	movslq	%ecx, %rcx
	leaq	l_switch.table.sony_nc_setup_rfkill(%rip), %rdx
	movq	(%rdx,%rcx,8), %rdx
	leaq	l_reltable.sony_nc_setup_rfkill(%rip), %rbx
	movslq	(%rbx,%rcx,4), %rdi
	addq	%rbx, %rdi
	movl	(%rdx), %edx
	movl	%esi, %r14d
	movq	_sony_rfkill_ops@GOTPCREL(%rip), %rcx
	movq	%rax, %rsi
	movq	%r14, %r8
	callq	_rfkill_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_sony_rfkill_handle@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movl	$512, %esi                      ## imm = 0x200
	callq	_sony_call_snc_handle
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	-44(%rbp), %r12d
	movl	(%r13), %edi
	movq	_sony_rfkill_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	leaq	-44(%rbp), %rdx
	callq	_sony_call_snc_handle
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	notl	%r12d
	andl	$1, %r12d
	xorl	%esi, %esi
	testb	$2, -44(%rbp)
	sete	%sil
	movq	%r15, %rdi
	callq	_rfkill_init_sw_state
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_rfkill_set_hw_state
	movq	%r15, %rdi
	callq	_rfkill_register
	testl	%eax, %eax
	je	LBB0_9
LBB0_6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_rfkill_destroy
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_sony_rfkill_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, (%rax,%r14,8)
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_RFKILL_TYPE_WLAN,4,2           ## @RFKILL_TYPE_WLAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sony-wifi"

	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ## @RFKILL_TYPE_BLUETOOTH
L_.str.1:                               ## @.str.1
	.asciz	"sony-bluetooth"

	.comm	_RFKILL_TYPE_WWAN,4,2           ## @RFKILL_TYPE_WWAN
L_.str.2:                               ## @.str.2
	.asciz	"sony-wwan"

	.comm	_RFKILL_TYPE_WIMAX,4,2          ## @RFKILL_TYPE_WIMAX
L_.str.3:                               ## @.str.3
	.asciz	"sony-wimax"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sony_rfkill_ops,4,2            ## @sony_rfkill_ops
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sony_rfkill_handle,4,2         ## @sony_rfkill_handle
	.comm	_sony_rfkill_address,8,3        ## @sony_rfkill_address
	.comm	_sony_rfkill_devices,8,3        ## @sony_rfkill_devices
	.no_dead_strip	_sony_nc_setup_rfkill
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.sony_nc_setup_rfkill
l_switch.table.sony_nc_setup_rfkill:
	.quad	_RFKILL_TYPE_WWAN
	.quad	_RFKILL_TYPE_WIMAX
	.quad	_RFKILL_TYPE_WLAN
	.quad	_RFKILL_TYPE_BLUETOOTH

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.sony_nc_setup_rfkill
l_reltable.sony_nc_setup_rfkill:
	.long	L_.str.2-l_reltable.sony_nc_setup_rfkill
	.long	L_.str.3-l_reltable.sony_nc_setup_rfkill
	.long	L_.str-l_reltable.sony_nc_setup_rfkill
	.long	L_.str.1-l_reltable.sony_nc_setup_rfkill

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_nc_setup_rfkill
_sony_nc_setup_rfkill:                  ; @sony_nc_setup_rfkill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	w9, w1, #128
	cmp	w9, #4
	b.hs	LBB0_6
; %bb.1:
	mov	x8, x0
	sbfiz	x9, x9, #3, #32
Lloh0:
	adrp	x10, l_switch.table.sony_nc_setup_rfkill@PAGE
Lloh1:
	add	x10, x10, l_switch.table.sony_nc_setup_rfkill@PAGEOFF
	ldr	x10, [x10, x9]
Lloh2:
	adrp	x11, l_switch.table.sony_nc_setup_rfkill.4@PAGE
Lloh3:
	add	x11, x11, l_switch.table.sony_nc_setup_rfkill.4@PAGEOFF
	ldr	x0, [x11, x9]
	ldr	w2, [x10]
	mov	w19, w1
Lloh4:
	adrp	x3, _sony_rfkill_ops@GOTPAGE
Lloh5:
	ldr	x3, [x3, _sony_rfkill_ops@GOTPAGEOFF]
	mov	x1, x8
	mov	x4, x19
	bl	_rfkill_alloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x23, _sony_rfkill_handle@GOTPAGE
Lloh7:
	ldr	x23, [x23, _sony_rfkill_handle@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x2, sp, #12
	mov	w1, #512
	bl	_sony_call_snc_handle
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w22, [sp, #12]
	ldr	w0, [x23]
Lloh8:
	adrp	x8, _sony_rfkill_address@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sony_rfkill_address@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w1, [x8, x19, lsl #2]
	add	x2, sp, #12
	bl	_sony_call_snc_handle
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mvn	w8, w22
	and	w21, w8, #0x1
	ldr	w8, [sp, #12]
	mov	w9, #1
	bic	w1, w9, w8, lsr #1
	mov	x0, x20
	bl	_rfkill_init_sw_state
	mov	x0, x20
	mov	x1, x21
	bl	_rfkill_set_hw_state
	mov	x0, x20
	bl	_rfkill_register
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.5:
Lloh11:
	adrp	x8, _sony_rfkill_devices@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sony_rfkill_devices@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x20, [x8, x19, lsl #3]
	b	LBB0_11
LBB0_6:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	x21, x0
LBB0_8:
	mov	x0, x20
	bl	_rfkill_destroy
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RFKILL_TYPE_WLAN,4,2           ; @RFKILL_TYPE_WLAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sony-wifi"

	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ; @RFKILL_TYPE_BLUETOOTH
l_.str.1:                               ; @.str.1
	.asciz	"sony-bluetooth"

	.comm	_RFKILL_TYPE_WWAN,4,2           ; @RFKILL_TYPE_WWAN
l_.str.2:                               ; @.str.2
	.asciz	"sony-wwan"

	.comm	_RFKILL_TYPE_WIMAX,4,2          ; @RFKILL_TYPE_WIMAX
l_.str.3:                               ; @.str.3
	.asciz	"sony-wimax"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sony_rfkill_ops,4,2            ; @sony_rfkill_ops
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sony_rfkill_handle,4,2         ; @sony_rfkill_handle
	.comm	_sony_rfkill_address,8,3        ; @sony_rfkill_address
	.comm	_sony_rfkill_devices,8,3        ; @sony_rfkill_devices
	.no_dead_strip	_sony_nc_setup_rfkill
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sony_nc_setup_rfkill
l_switch.table.sony_nc_setup_rfkill:
	.quad	_RFKILL_TYPE_WWAN
	.quad	_RFKILL_TYPE_WIMAX
	.quad	_RFKILL_TYPE_WLAN
	.quad	_RFKILL_TYPE_BLUETOOTH

	.p2align	3                               ; @switch.table.sony_nc_setup_rfkill.4
l_switch.table.sony_nc_setup_rfkill.4:
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str
	.quad	l_.str.1

.subsections_via_symbols
