	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function claim_resources
_claim_resources:                       ## @claim_resources
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_SLGT_REG_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	callq	_request_mem_region
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$1, (%rbx)
	movl	8(%rbx), %edi
	movl	(%r14), %esi
	callq	_ioremap_nocache
	movl	%eax, %ecx
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.3:
	movq	_DiagStatus_CantAssignPciResources@GOTPCREL(%rip), %r14
	jmp	LBB0_4
LBB0_1:
	movq	_DiagStatus_AddressConflict@GOTPCREL(%rip), %r14
LBB0_4:
	movslq	8(%rbx), %rdi
	callq	_DBGERR
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_release_resources
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLGT_REG_SIZE,4,2              ## @SLGT_REG_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"synclink_gt"

	.comm	_DiagStatus_AddressConflict,4,2 ## @DiagStatus_AddressConflict
	.comm	_DiagStatus_CantAssignPciResources,4,2 ## @DiagStatus_CantAssignPciResources
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_claim_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function claim_resources
_claim_resources:                       ; @claim_resources
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x20, _SLGT_REG_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SLGT_REG_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_request_mem_region
	cbz	x0, LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	bl	_ioremap_nocache
	str	w0, [x19, #16]
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x20, _DiagStatus_AddressConflict@GOTPAGE
Lloh5:
	ldr	x20, [x20, _DiagStatus_AddressConflict@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x20, _DiagStatus_CantAssignPciResources@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DiagStatus_CantAssignPciResources@GOTPAGEOFF]
LBB0_5:
	ldrsw	x0, [x19, #8]
	bl	_DBGERR
	ldr	w8, [x20]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_release_resources
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SLGT_REG_SIZE,4,2              ; @SLGT_REG_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"synclink_gt"

	.comm	_DiagStatus_AddressConflict,4,2 ; @DiagStatus_AddressConflict
	.comm	_DiagStatus_CantAssignPciResources,4,2 ; @DiagStatus_CantAssignPciResources
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_claim_resources
.subsections_via_symbols
