	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_read_mask
_amdgpu_read_mask:                      ## @amdgpu_read_mask
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AMDGPU_MASK_BUF_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leal	1(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movb	$0, -50(%rbp)
	movw	$2592, -52(%rbp)                ## imm = 0xA20
	movl	$0, (%r14)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_min
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movb	$0, (%rbx,%r15)
	movq	%rbx, -64(%rbp)
	cmpb	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	leaq	-64(%rbp), %r15
	leaq	-52(%rbp), %r12
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strsep
	cmpb	$0, (%rax)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-80(%rbp), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, (%r14)
	movq	-64(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_3
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_MASK_BUF_MAX,4,2        ## @AMDGPU_MASK_BUF_MAX
	.section	__TEXT,__cstring,cstring_literals
L___const.amdgpu_read_mask.delimiter:   ## @__const.amdgpu_read_mask.delimiter
	.asciz	" \n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_amdgpu_read_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_read_mask
_amdgpu_read_mask:                      ; @amdgpu_read_mask
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x19, x2
	mov	x8, x1
	mov	x20, x0
	mov	x23, sp
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-56]
Lloh3:
	adrp	x9, _AMDGPU_MASK_BUF_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMDGPU_MASK_BUF_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	w12, w1, #1
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	sturb	wzr, [x29, #-74]
	mov	w9, #2592
	sturh	w9, [x29, #-76]
	str	wzr, [x2]
	mov	x0, x8
	bl	_min
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x21, x22]
	stur	x21, [x29, #-72]
	ldrb	w8, [x21]
	cbz	w8, LBB0_5
; %bb.1:
	mov	w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #72
	sub	x1, x29, #76
	bl	_strsep
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x2, x29, #64
	mov	w1, #0
	bl	_kstrtol
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	w8, [x29, #-64]
	lsl	w8, w20, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	ldur	x8, [x29, #-72]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_MASK_BUF_MAX,4,2        ; @AMDGPU_MASK_BUF_MAX
	.section	__TEXT,__cstring,cstring_literals
l___const.amdgpu_read_mask.delimiter:   ; @__const.amdgpu_read_mask.delimiter
	.asciz	" \n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_amdgpu_read_mask
.subsections_via_symbols
