	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_attr_init              ## -- Begin function pthread_attr_init
	.p2align	4, 0x90
_pthread_attr_init:                     ## @pthread_attr_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	movl	$40, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	_PTHREAD_CREATE_JOINABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pte_osThreadGetDefaultPriority
	movl	%eax, 12(%rbx)
	movq	_PTHREAD_EXPLICIT_SCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_PTHREAD_SCOPE_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_PTE_ATTR_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, (%r14)
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PTHREAD_CREATE_JOINABLE,4,2    ## @PTHREAD_CREATE_JOINABLE
	.comm	_PTHREAD_EXPLICIT_SCHED,4,2     ## @PTHREAD_EXPLICIT_SCHED
	.comm	_PTHREAD_SCOPE_SYSTEM,4,2       ## @PTHREAD_SCOPE_SYSTEM
	.comm	_PTE_ATTR_VALID,4,2             ## @PTE_ATTR_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_attr_init              ; -- Begin function pthread_attr_init
	.p2align	2
_pthread_attr_init:                     ; @pthread_attr_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w0, #40
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _PTHREAD_CREATE_JOINABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTHREAD_CREATE_JOINABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	bl	_pte_osThreadGetDefaultPriority
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _PTHREAD_EXPLICIT_SCHED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PTHREAD_EXPLICIT_SCHED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh6:
	adrp	x8, _PTHREAD_SCOPE_SYSTEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTHREAD_SCOPE_SYSTEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PTE_ATTR_VALID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PTE_ATTR_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	str	x20, [x19]
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PTHREAD_CREATE_JOINABLE,4,2    ; @PTHREAD_CREATE_JOINABLE
	.comm	_PTHREAD_EXPLICIT_SCHED,4,2     ; @PTHREAD_EXPLICIT_SCHED
	.comm	_PTHREAD_SCOPE_SYSTEM,4,2       ; @PTHREAD_SCOPE_SYSTEM
	.comm	_PTE_ATTR_VALID,4,2             ; @PTE_ATTR_VALID
.subsections_via_symbols
