	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	cmpl	$6, %edi
	ja	LBB0_2
## %bb.1:
	movl	$100, %eax
	btl	%ebx, %eax
	jae	LBB0_2
## %bb.3:
	cmpl	$5, %ebx
	jl	LBB0_33
LBB0_4:
	movq	16(%r15), %rax
	movb	(%rax), %al
	cmpb	$98, %al
	je	LBB0_8
## %bb.5:
	cmpb	$99, %al
	jne	LBB0_9
## %bb.6:
	movq	_S_IFCHR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	callq	_usage
	cmpl	$5, %ebx
	jge	LBB0_4
LBB0_33:
	movq	_S_IFCHR@GOTPCREL(%rip), %rax
	movl	$438, %esi                      ## imm = 0x1B6
	orl	(%rax), %esi
	movl	$-1, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	$-1, %ebx
	jmp	LBB0_27
LBB0_8:
	movq	_S_IFBLK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	$438, %ecx                      ## imm = 0x1B6
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movl	$438, -44(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x1B6
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	%rax, %r13
	movl	$0, (%rax)
	movq	24(%r15), %rdi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, %r12
	movq	-56(%rbp), %rax
	movq	24(%r15), %rdx
	cmpq	%rdx, %rax
	je	LBB0_12
## %bb.11:
	cmpb	$0, (%rax)
	je	LBB0_13
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	movq	%r13, %r14
	movl	(%r13), %r13d
	movl	$0, (%r14)
	movq	32(%r15), %rdi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax
	movq	32(%r15), %rdx
	cmpq	%rdx, %rax
	je	LBB0_15
## %bb.14:
	cmpb	$0, (%rax)
	je	LBB0_16
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_16:
	movl	(%r14), %r14d
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_makedev
	orl	%r14d, %r13d
	movq	%rax, %r14
	jne	LBB0_19
## %bb.17:
	movq	%r14, %rdi
	callq	_major
	cmpq	%r12, %rax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_minor
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_20
LBB0_19:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_20:
	cmpl	$6, %ebx
	jne	LBB0_21
## %bb.22:
	movq	40(%r15), %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_23
## %bb.24:
	xorl	%eax, %eax
	callq	_usage
	movl	$-1, %r12d
	jmp	LBB0_25
LBB0_21:
	movl	$-1, %r12d
	xorl	%r13d, %r13d
	movl	$-1, %ebx
	jmp	LBB0_26
LBB0_23:
	movq	%rax, %rdi
	incq	%rdi
	movb	$0, (%rax)
	callq	_a_gid
	movl	%eax, %r12d
LBB0_25:
	movq	40(%r15), %rdi
	callq	_a_uid
	movl	%eax, %ebx
	movb	$1, %r13b
LBB0_26:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_27:
	movq	8(%r15), %rdi
	movq	%r14, %rdx
	callq	_mknod
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	8(%r15), %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_29:
	testb	%r13b, %r13b
	je	LBB0_32
## %bb.30:
	movq	8(%r15), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_chown
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	8(%r15), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_32:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IFCHR,4,2                    ## @S_IFCHR
	.comm	_S_IFBLK,4,2                    ## @S_IFBLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node must be type 'b' or 'c'"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"%s: non-numeric major number"

L_.str.2:                               ## @.str.2
	.asciz	"%s: non-numeric minor number"

L_.str.3:                               ## @.str.3
	.asciz	"major or minor number too large"

L_.str.4:                               ## @.str.4
	.asciz	"%s"

L_.str.5:                               ## @.str.5
	.asciz	"setting ownership on %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:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x21, x0
	cmp	w0, #6
	b.hi	LBB0_6
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w21
	mov	w9, #100
	tst	w8, w9
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #5
	b.lt	LBB0_7
LBB0_3:
	ldr	x8, [x19, #16]
	ldrb	w8, [x8]
	cmp	w8, #98
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #99
	b.ne	LBB0_10
; %bb.5:
Lloh0:
	adrp	x8, _S_IFCHR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IFCHR@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	bl	_usage
	cmp	w21, #5
	b.ge	LBB0_3
LBB0_7:
	mov	w24, #0
	mov	x22, #0
Lloh2:
	adrp	x8, _S_IFCHR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_IFCHR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #438
	orr	w20, w8, w9
	b	LBB0_25
LBB0_8:
Lloh5:
	adrp	x8, _S_IFBLK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_IFBLK@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	mov	w9, #438
	orr	w20, w8, w9
	b	LBB0_11
LBB0_10:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	mov	w20, #438
LBB0_11:
Lloh9:
	adrp	x22, _errno@GOTPAGE
Lloh10:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	wzr, [x22]
	ldr	x0, [x19, #24]
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	mov	x23, x0
	ldr	x9, [sp, #8]
	ldr	x8, [x19, #24]
	cmp	x9, x8
	b.eq	LBB0_13
; %bb.12:
	ldrb	w9, [x9]
	cbz	w9, LBB0_14
LBB0_13:
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_14:
	ldr	w25, [x22]
	str	wzr, [x22]
	ldr	x0, [x19, #32]
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	mov	x24, x0
	ldr	x9, [sp, #8]
	ldr	x8, [x19, #32]
	cmp	x9, x8
	b.eq	LBB0_16
; %bb.15:
	ldrb	w9, [x9]
	cbz	w9, LBB0_17
LBB0_16:
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_17:
	ldr	w8, [x22]
	orr	w25, w8, w25
	mov	x0, x23
	mov	x1, x24
	bl	_makedev
	mov	x22, x0
	cbnz	w25, LBB0_20
; %bb.18:
	mov	x0, x22
	bl	_major
	cmp	x0, x23
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x22
	bl	_minor
	cmp	x0, x24
	b.eq	LBB0_21
LBB0_20:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_21:
	cmp	w21, #6
	b.ne	LBB0_24
; %bb.22:
	ldr	x0, [x19, #40]
	mov	w1, #58
	bl	_strchr
	cbnz	x0, LBB0_26
; %bb.23:
	bl	_usage
	mov	w21, #-1
	b	LBB0_27
LBB0_24:
	mov	w24, #0
LBB0_25:
	mov	w21, #-1
	mov	w23, #-1
	b	LBB0_28
LBB0_26:
	strb	wzr, [x0], #1
	bl	_a_gid
	mov	x21, x0
LBB0_27:
	ldr	x0, [x19, #40]
	bl	_a_uid
	mov	x23, x0
	mov	w24, #1
LBB0_28:
	ldr	x0, [x19, #8]
	mov	x1, x20
	mov	x2, x22
	bl	_mknod
	cbz	x0, LBB0_30
; %bb.29:
	ldr	x2, [x19, #8]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_30:
	cbz	w24, LBB0_33
; %bb.31:
	ldr	x0, [x19, #8]
	mov	x1, x23
	mov	x2, x21
	bl	_chown
	cbz	x0, LBB0_33
; %bb.32:
	ldr	x2, [x19, #8]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_33:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IFCHR,4,2                    ; @S_IFCHR
	.comm	_S_IFBLK,4,2                    ; @S_IFBLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node must be type 'b' or 'c'"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"%s: non-numeric major number"

l_.str.2:                               ; @.str.2
	.asciz	"%s: non-numeric minor number"

l_.str.3:                               ; @.str.3
	.asciz	"major or minor number too large"

l_.str.4:                               ; @.str.4
	.asciz	"%s"

l_.str.5:                               ; @.str.5
	.asciz	"setting ownership on %s"

.subsections_via_symbols
