	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_hw_trigger_scan        ## -- Begin function orinoco_hw_trigger_scan
	.p2align	4, 0x90
_orinoco_hw_trigger_scan:               ## @orinoco_hw_trigger_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %rbx
	leaq	-96(%rbp), %rsi
	callq	_orinoco_lock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_2:
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_7:
	leaq	24(%r15), %r14
	cmpq	$0, 16(%r15)
	je	LBB0_20
## %bb.8:
	movl	8(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_13
## %bb.9:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	jne	LBB0_23
## %bb.11:
	movq	_USER_BAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HERMES_RID_CNFHOSTSCAN_SYMBOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HERMES_HOSTSCAN_SYMBOL_ONCE@GOTPCREL(%rip), %rax
	movq	_HERMES_HOSTSCAN_SYMBOL_BCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_hermes_write_wordrec
	jmp	LBB0_22
LBB0_13:
	movq	(%r13), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movl	8(%r13), %esi
	movq	%r12, %rdx
	callq	_memcpy
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_USER_BAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_HERMES_RID_CNFSCANSSID_AGERE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addq	$2, %r12
	movq	%r12, %rdi
	callq	_HERMES_BYTES_TO_RECLEN
	leaq	-80(%rbp), %r8
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	jmp	LBB0_16
LBB0_12:
	movl	$16383, %edi                    ## imm = 0x3FFF
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movl	$1, %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	_USER_BAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HERMES_RID_CNFHOSTSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rcx
	movq	%r14, %rdi
	callq	_HERMES_WRITE_RECORD
	jmp	LBB0_22
LBB0_15:
	movq	_USER_BAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HERMES_RID_CNFSCANSSID_AGERE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_hermes_write_wordrec
LBB0_16:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.17:
	cmpl	$0, 12(%r15)
	je	LBB0_20
## %bb.18:
	movq	_USER_BAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HERMES_RID_CNFSCANCHANNELS2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32767, %ecx                    ## imm = 0x7FFF
	callq	_hermes_write_wordrec
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.19:
	movq	_HERMES_INQ_CHANNELINFO@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movq	_HERMES_INQ_SCAN@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hermes_inquire
LBB0_22:
	movl	%eax, %ebx
LBB0_23:
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdi
	callq	_orinoco_unlock
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_USER_BAP,4,2                   ## @USER_BAP
	.comm	_HERMES_RID_CNFHOSTSCAN_SYMBOL,4,2 ## @HERMES_RID_CNFHOSTSCAN_SYMBOL
	.comm	_HERMES_HOSTSCAN_SYMBOL_ONCE,4,2 ## @HERMES_HOSTSCAN_SYMBOL_ONCE
	.comm	_HERMES_HOSTSCAN_SYMBOL_BCAST,4,2 ## @HERMES_HOSTSCAN_SYMBOL_BCAST
	.comm	_HERMES_RID_CNFHOSTSCAN,4,2     ## @HERMES_RID_CNFHOSTSCAN
	.comm	_HERMES_RID_CNFSCANSSID_AGERE,4,2 ## @HERMES_RID_CNFSCANSSID_AGERE
	.comm	_HERMES_RID_CNFSCANCHANNELS2GHZ,4,2 ## @HERMES_RID_CNFSCANCHANNELS2GHZ
	.comm	_HERMES_INQ_CHANNELINFO,4,2     ## @HERMES_INQ_CHANNELINFO
	.comm	_HERMES_INQ_SCAN,4,2            ## @HERMES_INQ_SCAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_hw_trigger_scan        ; -- Begin function orinoco_hw_trigger_scan
	.p2align	2
_orinoco_hw_trigger_scan:               ; @orinoco_hw_trigger_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x20, [x0, #32]
	add	x1, sp, #8
	bl	_orinoco_lock
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_25
LBB0_2:
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_24
LBB0_7:
	add	x20, x19, #24
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
; %bb.8:
	ldr	w8, [x19, #8]
	cmp	w8, #130
	b.eq	LBB0_12
; %bb.9:
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.11:
Lloh13:
	adrp	x8, _USER_BAP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _USER_BAP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _HERMES_RID_CNFHOSTSCAN_SYMBOL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HERMES_RID_CNFHOSTSCAN_SYMBOL@GOTPAGEOFF]
Lloh18:
	adrp	x9, _HERMES_HOSTSCAN_SYMBOL_ONCE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HERMES_HOSTSCAN_SYMBOL_ONCE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	ldr	w8, [x9]
Lloh22:
	adrp	x9, _HERMES_HOSTSCAN_SYMBOL_BCAST@GOTPAGE
Lloh23:
	ldr	x9, [x9, _HERMES_HOSTSCAN_SYMBOL_BCAST@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	bl	_hermes_write_wordrec
	b	LBB0_23
LBB0_12:
	ldr	x22, [x21]
	cbz	x22, LBB0_16
; %bb.13:
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	ldr	w1, [x21, #8]
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x20]
Lloh25:
	adrp	x9, _USER_BAP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _USER_BAP@GOTPAGEOFF]
	ldr	x24, [x8]
Lloh27:
	ldr	w21, [x9]
Lloh28:
	adrp	x8, _HERMES_RID_CNFSCANSSID_AGERE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HERMES_RID_CNFSCANSSID_AGERE@GOTPAGEOFF]
Lloh30:
	ldr	w23, [x8]
	add	x0, x22, #2
	bl	_HERMES_BYTES_TO_RECLEN
	mov	x3, x0
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	blr	x24
	b	LBB0_17
LBB0_14:
	mov	w0, #16383
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	mov	w0, #1
	bl	_cpu_to_le16
	stp	x0, xzr, [sp, #24]
Lloh31:
	adrp	x8, _USER_BAP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _USER_BAP@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _HERMES_RID_CNFHOSTSCAN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HERMES_RID_CNFHOSTSCAN@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x20
	bl	_HERMES_WRITE_RECORD
	b	LBB0_23
LBB0_15:
	mov	w21, #0
	b	LBB0_24
LBB0_16:
Lloh37:
	adrp	x8, _USER_BAP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _USER_BAP@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _HERMES_RID_CNFSCANSSID_AGERE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _HERMES_RID_CNFSCANSSID_AGERE@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_hermes_write_wordrec
LBB0_17:
	mov	x21, x0
	cbnz	w0, LBB0_24
; %bb.18:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_21
; %bb.19:
Lloh43:
	adrp	x8, _USER_BAP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _USER_BAP@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _HERMES_RID_CNFSCANCHANNELS2GHZ@GOTPAGE
Lloh47:
	ldr	x8, [x8, _HERMES_RID_CNFSCANCHANNELS2GHZ@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #32767
	bl	_hermes_write_wordrec
	mov	x21, x0
	cbnz	w0, LBB0_24
; %bb.20:
Lloh49:
	adrp	x8, _HERMES_INQ_CHANNELINFO@GOTPAGE
Lloh50:
	ldr	x8, [x8, _HERMES_INQ_CHANNELINFO@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh51:
	adrp	x8, _HERMES_INQ_SCAN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _HERMES_INQ_SCAN@GOTPAGEOFF]
LBB0_22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hermes_inquire
LBB0_23:
	mov	x21, x0
LBB0_24:
	add	x1, sp, #8
	mov	x0, x19
	bl	_orinoco_unlock
LBB0_25:
	ldr	x8, [sp, #40]
Lloh53:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh54:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_USER_BAP,4,2                   ; @USER_BAP
	.comm	_HERMES_RID_CNFHOSTSCAN_SYMBOL,4,2 ; @HERMES_RID_CNFHOSTSCAN_SYMBOL
	.comm	_HERMES_HOSTSCAN_SYMBOL_ONCE,4,2 ; @HERMES_HOSTSCAN_SYMBOL_ONCE
	.comm	_HERMES_HOSTSCAN_SYMBOL_BCAST,4,2 ; @HERMES_HOSTSCAN_SYMBOL_BCAST
	.comm	_HERMES_RID_CNFHOSTSCAN,4,2     ; @HERMES_RID_CNFHOSTSCAN
	.comm	_HERMES_RID_CNFSCANSSID_AGERE,4,2 ; @HERMES_RID_CNFSCANSSID_AGERE
	.comm	_HERMES_RID_CNFSCANCHANNELS2GHZ,4,2 ; @HERMES_RID_CNFSCANCHANNELS2GHZ
	.comm	_HERMES_INQ_CHANNELINFO,4,2     ; @HERMES_INQ_CHANNELINFO
	.comm	_HERMES_INQ_SCAN,4,2            ; @HERMES_INQ_SCAN
.subsections_via_symbols
