	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetBLASTER                     ## -- Begin function GetBLASTER
	.p2align	4, 0x90
_GetBLASTER:                            ## @GetBLASTER
	.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
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_19
## %bb.2:
	incq	%rbx
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %r15
	leaq	L_.str.3(%rip), %r13
	movq	_SBDMA@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	_SBDMA16@GOTPCREL(%rip), %rdx
	callq	_sscanf
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sete	%cl
	shll	$3, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	orl	%ecx, %r14d
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_toupper
                                        ## kill: def $eax killed $eax def $rax
	addl	$-65, %eax
	cmpl	$8, %eax
	ja	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	_SBPort@GOTPCREL(%rip), %rdx
	callq	_sscanf
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sete	%cl
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_sscanf
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sete	%cl
	shll	$2, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	_SBIRQ@GOTPCREL(%rip), %rdx
	callq	_sscanf
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sete	%cl
	addl	%ecx, %ecx
	jmp	LBB0_11
LBB0_13:
	movl	%r14d, %eax
	notl	%eax
	testb	$7, %al
	jne	LBB0_19
## %bb.14:
	cmpl	$3, (%r12)
	jg	LBB0_19
## %bb.15:
	movq	_SBDMA16@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jg	LBB0_18
## %bb.16:
	testb	$8, %r14b
	jne	LBB0_19
## %bb.17:
	movq	_SBIRQ@GOTPCREL(%rip), %rax
	cmpl	$15, (%rax)
	jle	LBB0_21
	jmp	LBB0_19
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_18:
	movq	_SBIRQ@GOTPCREL(%rip), %rax
	cmpl	$16, (%rax)
	jl	LBB0_20
LBB0_19:
	leaq	L_.str.4(%rip), %rdi
LBB0_6:
	callq	_puts
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$1, %eax
	testb	$8, %r14b
	jne	LBB0_22
LBB0_21:
	movq	_format@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	$1, %eax
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BLASTER"

L_.str.1:                               ## @.str.1
	.asciz	" Error getting BLASTER environment variable."

L_.str.2:                               ## @.str.2
	.asciz	"%x"

	.comm	_SBPort,4,2                     ## @SBPort
L_.str.3:                               ## @.str.3
	.asciz	"%d"

	.comm	_SBIRQ,4,2                      ## @SBIRQ
	.comm	_SBDMA,4,2                      ## @SBDMA
	.comm	_SBDMA16,4,2                    ## @SBDMA16
L_.str.4:                               ## @.str.4
	.asciz	" Invalid or incomplete BLASTER environment variable."

	.comm	_format,8,3                     ## @format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetBLASTER                     ; -- Begin function GetBLASTER
	.p2align	2
_GetBLASTER:                            ; @GetBLASTER
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_15
; %bb.1:
	ldrb	w8, [x0]
	cbz	w8, LBB0_17
; %bb.2:
	mov	w26, #0
	add	x21, x0, #1
Lloh2:
	adrp	x27, lJTI0_0@PAGE
Lloh3:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x23, _SBPort@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SBPort@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh8:
	adrp	x22, _SBDMA@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SBDMA@GOTPAGEOFF]
Lloh10:
	adrp	x20, _SBDMA16@GOTPAGE
Lloh11:
	ldr	x20, [x20, _SBDMA16@GOTPAGEOFF]
Lloh12:
	adrp	x19, _SBIRQ@GOTPAGE
Lloh13:
	ldr	x19, [x19, _SBIRQ@GOTPAGEOFF]
Lloh14:
	adrp	x25, l_.str.3@PAGE
Lloh15:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x25
	mov	x2, x20
	bl	_sscanf
	cmp	w0, #1
	cset	w8, eq
	orr	w26, w26, w8, lsl #3
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21], #1
	cbz	w8, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_toupper
	sub	w8, w0, #65
	cmp	w8, #8
	b.hi	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_sscanf
	cmp	w0, #1
	cset	w8, eq
	orr	w26, w26, w8
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x25
	mov	x2, x22
	bl	_sscanf
	cmp	w0, #1
	cset	w8, eq
	orr	w26, w26, w8, lsl #2
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x25
	mov	x2, x19
	bl	_sscanf
	cmp	w0, #1
	cset	w8, eq
	orr	w26, w26, w8, lsl #1
	b	LBB0_4
LBB0_10:
	mvn	w8, w26
	tst	w8, #0x7
	b.ne	LBB0_17
; %bb.11:
	ldr	w8, [x22]
	cmp	w8, #3
	b.gt	LBB0_17
; %bb.12:
	ldr	w8, [x20]
	cmp	w8, #4
	b.gt	LBB0_16
; %bb.13:
	tbnz	w26, #3, LBB0_17
; %bb.14:
	ldr	w8, [x19]
	cmp	w8, #15
	b.le	LBB0_21
	b	LBB0_17
LBB0_15:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_16:
	ldr	w8, [x19]
	cmp	w8, #16
	b.lt	LBB0_20
LBB0_17:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_18:
	bl	_puts
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	tbnz	w26, #3, LBB0_22
LBB0_21:
Lloh20:
	adrp	x8, _format@GOTPAGE
Lloh21:
	ldr	x8, [x8, _format@GOTPAGEOFF]
Lloh22:
	str	xzr, [x8]
LBB0_22:
	mov	w0, #1
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BLASTER"

l_.str.1:                               ; @.str.1
	.asciz	" Error getting BLASTER environment variable."

l_.str.2:                               ; @.str.2
	.asciz	"%x"

	.comm	_SBPort,4,2                     ; @SBPort
l_.str.3:                               ; @.str.3
	.asciz	"%d"

	.comm	_SBIRQ,4,2                      ; @SBIRQ
	.comm	_SBDMA,4,2                      ; @SBDMA
	.comm	_SBDMA16,4,2                    ; @SBDMA16
l_.str.4:                               ; @.str.4
	.asciz	" Invalid or incomplete BLASTER environment variable."

	.comm	_format,8,3                     ; @format
.subsections_via_symbols
