	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1201_get_mode
_zd1201_get_mode:                       ## @zd1201_get_mode
	.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	%rdx, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_ZD1201_RID_CNFPORTTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-26(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zd1201_getconfig16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movswl	-26(%rbp), %eax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_7
## %bb.2:
	movl	$8, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_IW_MODE_REPEAT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	8(%r15), %rdi
	movswl	%ax, %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_IW_MODE_AUTO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_IW_MODE_ADHOC@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_IW_MODE_MASTER@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	movl	%eax, (%r14)
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.10:
	movq	_IW_MODE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_ZD1201_RID_CNFPORTTYPE,4,2     ## @ZD1201_RID_CNFPORTTYPE
	.comm	_IW_MODE_ADHOC,4,2              ## @IW_MODE_ADHOC
	.comm	_IW_MODE_INFRA,4,2              ## @IW_MODE_INFRA
	.comm	_IW_MODE_REPEAT,4,2             ## @IW_MODE_REPEAT
	.comm	_IW_MODE_MASTER,4,2             ## @IW_MODE_MASTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown porttype: %d\n"

	.comm	_IW_MODE_AUTO,4,2               ## @IW_MODE_AUTO
	.comm	_IW_MODE_MONITOR,4,2            ## @IW_MODE_MONITOR
	.no_dead_strip	_zd1201_get_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1201_get_mode
_zd1201_get_mode:                       ; @zd1201_get_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _ZD1201_RID_CNFPORTTYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZD1201_RID_CNFPORTTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #14
	bl	_zd1201_getconfig16
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.1:
	ldrsh	w8, [sp, #14]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.2:
	mov	w8, #8
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh5:
	adrp	x8, _IW_MODE_REPEAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IW_MODE_REPEAT@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	and	w8, w8, #0xffff
	ldr	x0, [x20, #8]
	sxth	w2, w8
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh9:
	adrp	x8, _IW_MODE_AUTO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IW_MODE_AUTO@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _IW_MODE_ADHOC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IW_MODE_ADHOC@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _IW_MODE_INFRA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IW_MODE_INFRA@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _IW_MODE_MASTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IW_MODE_MASTER@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
LBB0_9:
	str	w8, [x19]
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:
Lloh17:
	adrp	x8, _IW_MODE_MONITOR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IW_MODE_MONITOR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_ZD1201_RID_CNFPORTTYPE,4,2     ; @ZD1201_RID_CNFPORTTYPE
	.comm	_IW_MODE_ADHOC,4,2              ; @IW_MODE_ADHOC
	.comm	_IW_MODE_INFRA,4,2              ; @IW_MODE_INFRA
	.comm	_IW_MODE_REPEAT,4,2             ; @IW_MODE_REPEAT
	.comm	_IW_MODE_MASTER,4,2             ; @IW_MODE_MASTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown porttype: %d\n"

	.comm	_IW_MODE_AUTO,4,2               ; @IW_MODE_AUTO
	.comm	_IW_MODE_MONITOR,4,2            ; @IW_MODE_MONITOR
	.no_dead_strip	_zd1201_get_mode
.subsections_via_symbols
