	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FODevice
_FODevice:                              ## @FODevice
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SEXYAL_ID_DEFAULT@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sal_strcpy
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	jmp	LBB0_11
LBB0_2:
	movq	%rdi, %rbx
	movq	_SEXYAL_ID_UNUSED@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_10
## %bb.3:
	movq	$-1, %rbx
	leaq	-112(%rbp), %r15
	movq	_O_WRONLY@GOTPCREL(%rip), %r13
	movq	_ENOENT@GOTPCREL(%rip), %r14
	movq	$-1, %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sal_strcpy
	incq	%r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_sal_uinttos
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sal_strcat
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	movq	%r15, %rdi
	callq	_open
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, %rbx
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	callq	_sal_strcpy
	movq	_IDBASE@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_sal_uinttos
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sal_strcat
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
LBB0_11:
	callq	_open
	movl	%eax, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_fcntl
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%ebx, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_fcntl
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEXYAL_ID_DEFAULT,8,3          ## @SEXYAL_ID_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/dsp"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_SEXYAL_ID_UNUSED,8,3           ## @SEXYAL_ID_UNUSED
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_IDBASE,8,3                     ## @IDBASE
	.no_dead_strip	_FODevice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FODevice
_FODevice:                              ; @FODevice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x8, _SEXYAL_ID_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEXYAL_ID_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sal_strcpy
	b	LBB0_10
LBB0_2:
	mov	x19, x0
Lloh8:
	adrp	x8, _SEXYAL_ID_UNUSED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEXYAL_ID_UNUSED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_9
; %bb.3:
	mov	x19, #-1
Lloh11:
	adrp	x22, _O_WRONLY@GOTPAGE
Lloh12:
	ldr	x22, [x22, _O_WRONLY@GOTPAGEOFF]
Lloh13:
	adrp	x21, _O_NONBLOCK@GOTPAGE
Lloh14:
	ldr	x21, [x21, _O_NONBLOCK@GOTPAGEOFF]
Lloh15:
	adrp	x20, l_.str@PAGE
Lloh16:
	add	x20, x20, l_.str@PAGEOFF
Lloh17:
	adrp	x23, _errno@GOTPAGE
Lloh18:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh19:
	adrp	x24, _ENOENT@GOTPAGE
Lloh20:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_sal_strcpy
	adds	x25, x19, #1
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_sal_uinttos
	mov	x1, x0
	add	x0, sp, #8
	bl	_sal_strcat
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w1, w9, w8
	add	x0, sp, #8
	bl	_open
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	mov	x19, x25
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.8:
	mov	w19, #0
	b	LBB0_11
LBB0_9:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sal_strcpy
Lloh23:
	adrp	x8, _IDBASE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IDBASE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	sub	x0, x19, x8
	bl	_sal_uinttos
	mov	x1, x0
	add	x0, sp, #8
	bl	_sal_strcat
LBB0_10:
Lloh26:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_open
	mov	x19, x0
LBB0_11:
	ldr	x8, [sp, #72]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_13:
	mov	x19, x0
Lloh32:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh34:
	ldr	w20, [x8]
Lloh35:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_fcntl
	ldr	w8, [x21]
	bic	w8, w0, w8
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_fcntl
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SEXYAL_ID_DEFAULT,8,3          ; @SEXYAL_ID_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/dsp"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_SEXYAL_ID_UNUSED,8,3           ; @SEXYAL_ID_UNUSED
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_IDBASE,8,3                     ; @IDBASE
	.no_dead_strip	_FODevice
.subsections_via_symbols
