	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	movq	%rsi, %r12
	movl	%edi, %ebx
	leaq	L_.str(%rip), %r15
	movq	_optarg@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_1
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_f_mode@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	(%r13), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$109, %eax
	je	LBB0_19
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_4:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	$0, (%r12,%rbx,8)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_usage
LBB0_6:
	movq	_f_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.12:
	movq	_BASEMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_7:
	xorl	%edi, %edi
	callq	_umask
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	movq	%r14, %rdi
	callq	_setmode
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	cmpq	$0, (%r13)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_11:
	movq	_BASEMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_getmode
	movl	%eax, %r14d
LBB0_13:
	movq	(%r12,%rbx,8), %rdi
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	jne	LBB0_14
LBB0_18:
	movl	%r15d, %edi
	callq	_exit
LBB0_14:
	leaq	(%r12,%rbx,8), %rbx
	addq	$8, %rbx
	xorl	%r15d, %r15d
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %esi
	callq	_mkfifo
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-8(%rbx), %rsi
	movq	%r12, %rdi
	callq	_warn
	movl	$1, %r15d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m:"

	.comm	_f_mode,4,2                     ## @f_mode
	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"setmode"

L_.str.2:                               ## @.str.2
	.asciz	"invalid file mode: %s"

	.comm	_BASEMODE,4,2                   ## @BASEMODE
L_.str.3:                               ## @.str.3
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	mov	x20, #0
Lloh0:
	adrp	x23, _f_mode@GOTPAGE
Lloh1:
	ldr	x23, [x23, _f_mode@GOTPAGEOFF]
	mov	w24, #1
Lloh2:
	adrp	x25, _optarg@GOTPAGE
Lloh3:
	ldr	x25, [x25, _optarg@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w24, [x23]
	ldr	x20, [x25]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_getopt
	cmp	w0, #109
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_5:
Lloh6:
	adrp	x8, _optind@GOTPAGE
Lloh7:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	ldr	x8, [x19, x22, lsl #3]
	cbnz	x8, LBB0_7
; %bb.6:
	bl	_usage
LBB0_7:
	ldr	w8, [x23]
	cbnz	w8, LBB0_13
; %bb.8:
Lloh9:
	adrp	x8, _BASEMODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BASEMODE@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	ldr	x0, [x19, x22, lsl #3]
	cbz	x0, LBB0_18
LBB0_9:
	mov	w21, #0
	add	x8, x19, x22, lsl #3
	add	x22, x8, #8
Lloh12:
	adrp	x19, l_.str.3@PAGE
Lloh13:
	add	x19, x19, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x22], #8
	cbz	x0, LBB0_19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	bl	_mkfifo
	tbz	x0, #63, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldur	x1, [x22, #-8]
	mov	x0, x19
	bl	_warn
	mov	w21, #1
	b	LBB0_10
LBB0_13:
	mov	w0, #0
	bl	_umask
Lloh14:
	adrp	x23, _errno@GOTPAGE
Lloh15:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	str	xzr, [x23]
	mov	x0, x20
	bl	_setmode
	mov	x21, x0
	cbnz	x0, LBB0_17
; %bb.14:
	ldr	x8, [x23]
	cbz	x8, LBB0_16
; %bb.15:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_16:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_errx
LBB0_17:
Lloh20:
	adrp	x8, _BASEMODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BASEMODE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_getmode
	mov	x20, x0
	ldr	x0, [x19, x22, lsl #3]
	cbnz	x0, LBB0_9
LBB0_18:
	mov	w0, #0
	bl	_exit
LBB0_19:
	mov	x0, x21
	bl	_exit
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m:"

	.comm	_f_mode,4,2                     ; @f_mode
	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"setmode"

l_.str.2:                               ; @.str.2
	.asciz	"invalid file mode: %s"

	.comm	_BASEMODE,4,2                   ; @BASEMODE
l_.str.3:                               ; @.str.3
	.asciz	"%s"

.subsections_via_symbols
