	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1201_get_scan
_zd1201_get_scan:                       ## @zd1201_get_scan
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_netdev_priv
	cmpq	$0, 32(%rax)
	je	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	movq	%rax, %rbx
	movl	(%rax), %r15d
	movq	%rax, %rdi
	callq	_zd1201_enable
	movq	$0, 16(%rbx)
	movq	_ZD1201_CMDCODE_INQUIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ZD1201_INQ_SCANRESULTS@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_zd1201_docmd
	testl	%eax, %eax
	je	LBB0_4
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	24(%rbx), %edi
	movq	16(%rbx), %rsi
	callq	_wait_event_interruptible
	cmpl	$0, 4(%rbx)
	je	LBB0_5
## %bb.6:
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	callq	_le16_to_cpu
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.7:
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_zd1201_disable
LBB0_9:
	movl	$0, (%r14)
	movq	$0, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_SCAN_MAX_DATA,4,2           ## @IW_SCAN_MAX_DATA
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ZD1201_CMDCODE_INQUIRE,4,2     ## @ZD1201_CMDCODE_INQUIRE
	.comm	_ZD1201_INQ_SCANRESULTS,8,3     ## @ZD1201_INQ_SCANRESULTS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SIOCGIWAP,4,2                  ## @SIOCGIWAP
	.comm	_ARPHRD_ETHER,4,2               ## @ARPHRD_ETHER
	.comm	_IW_EV_ADDR_LEN,4,2             ## @IW_EV_ADDR_LEN
	.comm	_SIOCGIWESSID,4,2               ## @SIOCGIWESSID
	.comm	_SIOCGIWMODE,4,2                ## @SIOCGIWMODE
	.comm	_IW_MODE_MASTER,4,2             ## @IW_MODE_MASTER
	.comm	_IW_MODE_ADHOC,4,2              ## @IW_MODE_ADHOC
	.comm	_IW_EV_UINT_LEN,4,2             ## @IW_EV_UINT_LEN
	.comm	_SIOCGIWFREQ,4,2                ## @SIOCGIWFREQ
	.comm	_IW_EV_FREQ_LEN,4,2             ## @IW_EV_FREQ_LEN
	.comm	_SIOCGIWRATE,4,2                ## @SIOCGIWRATE
	.comm	_IW_EV_PARAM_LEN,4,2            ## @IW_EV_PARAM_LEN
	.comm	_SIOCGIWENCODE,4,2              ## @SIOCGIWENCODE
	.comm	_IW_ENCODE_ENABLED,4,2          ## @IW_ENCODE_ENABLED
	.comm	_IW_ENCODE_DISABLED,4,2         ## @IW_ENCODE_DISABLED
	.comm	_IWEVQUAL,4,2                   ## @IWEVQUAL
	.comm	_IW_EV_QUAL_LEN,4,2             ## @IW_EV_QUAL_LEN
	.no_dead_strip	_zd1201_get_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1201_get_scan
_zd1201_get_scan:                       ; @zd1201_get_scan
	.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	x19, x2
	bl	_netdev_priv
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	ldr	w21, [x0]
	bl	_zd1201_enable
	str	xzr, [x20, #16]
Lloh2:
	adrp	x8, _ZD1201_CMDCODE_INQUIRE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZD1201_CMDCODE_INQUIRE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x22, _ZD1201_INQ_SCANRESULTS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ZD1201_INQ_SCANRESULTS@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #0
	bl	_zd1201_docmd
	cbz	w0, LBB0_5
LBB0_4:
	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
LBB0_5:
	ldr	w0, [x20, #24]
	ldr	x1, [x20, #16]
	bl	_wait_event_interruptible
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_10
; %bb.6:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	bl	_le16_to_cpu
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
	cbnz	w21, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_zd1201_disable
LBB0_9:
	mov	w0, #0
	str	wzr, [x19]
	str	xzr, [x19, #8]
	b	LBB0_4
LBB0_10:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_SCAN_MAX_DATA,4,2           ; @IW_SCAN_MAX_DATA
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ZD1201_CMDCODE_INQUIRE,4,2     ; @ZD1201_CMDCODE_INQUIRE
	.comm	_ZD1201_INQ_SCANRESULTS,8,3     ; @ZD1201_INQ_SCANRESULTS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SIOCGIWAP,4,2                  ; @SIOCGIWAP
	.comm	_ARPHRD_ETHER,4,2               ; @ARPHRD_ETHER
	.comm	_IW_EV_ADDR_LEN,4,2             ; @IW_EV_ADDR_LEN
	.comm	_SIOCGIWESSID,4,2               ; @SIOCGIWESSID
	.comm	_SIOCGIWMODE,4,2                ; @SIOCGIWMODE
	.comm	_IW_MODE_MASTER,4,2             ; @IW_MODE_MASTER
	.comm	_IW_MODE_ADHOC,4,2              ; @IW_MODE_ADHOC
	.comm	_IW_EV_UINT_LEN,4,2             ; @IW_EV_UINT_LEN
	.comm	_SIOCGIWFREQ,4,2                ; @SIOCGIWFREQ
	.comm	_IW_EV_FREQ_LEN,4,2             ; @IW_EV_FREQ_LEN
	.comm	_SIOCGIWRATE,4,2                ; @SIOCGIWRATE
	.comm	_IW_EV_PARAM_LEN,4,2            ; @IW_EV_PARAM_LEN
	.comm	_SIOCGIWENCODE,4,2              ; @SIOCGIWENCODE
	.comm	_IW_ENCODE_ENABLED,4,2          ; @IW_ENCODE_ENABLED
	.comm	_IW_ENCODE_DISABLED,4,2         ; @IW_ENCODE_DISABLED
	.comm	_IWEVQUAL,4,2                   ; @IWEVQUAL
	.comm	_IW_EV_QUAL_LEN,4,2             ; @IW_EV_QUAL_LEN
	.no_dead_strip	_zd1201_get_scan
.subsections_via_symbols
