	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_device_claim               ## -- Begin function i2o_device_claim
	.p2align	4, 0x90
_i2o_device_claim:                      ## @i2o_device_claim
	.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
	callq	_mutex_lock
	movq	_I2O_CMD_UTIL_CLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2O_CLAIM_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_i2o_device_issue_claim
	movl	%eax, %r14d
	movl	4(%rbx), %esi
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2O_CMD_UTIL_CLAIM,4,2         ## @I2O_CMD_UTIL_CLAIM
	.comm	_I2O_CLAIM_PRIMARY,4,2          ## @I2O_CLAIM_PRIMARY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2o: claim of device %d succeded\n"

L_.str.1:                               ## @.str.1
	.asciz	"i2o: claim of device %d failed %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_device_claim               ; -- Begin function i2o_device_claim
	.p2align	2
_i2o_device_claim:                      ; @i2o_device_claim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _I2O_CMD_UTIL_CLAIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2O_CMD_UTIL_CLAIM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _I2O_CLAIM_PRIMARY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2O_CLAIM_PRIMARY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2o_device_issue_claim
	mov	x20, x0
	ldr	w1, [x19, #4]
	cbz	w0, LBB0_2
; %bb.1:
	str	x20, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_pr_debug
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I2O_CMD_UTIL_CLAIM,4,2         ; @I2O_CMD_UTIL_CLAIM
	.comm	_I2O_CLAIM_PRIMARY,4,2          ; @I2O_CLAIM_PRIMARY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2o: claim of device %d succeded\n"

l_.str.1:                               ; @.str.1
	.asciz	"i2o: claim of device %d failed %d\n"

.subsections_via_symbols
