	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_bus_scan
_i2o_bus_scan:                          ## @i2o_bus_scan
	.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, %r14
	movl	(%rdi), %edi
	movq	_I2O_TIMEOUT_MESSAGE_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2o_msg_get_wait
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_FIVE_WORD_MSG_SIZE@GOTPCREL(%rip), %rax
	movq	_SGL_OFFSET_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_I2O_CMD_BUS_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	movq	_HOST_TID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$12, %edi
	orl	%eax, %edi
	orl	4(%r14), %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movl	$60, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2o_msg_post_wait              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ## @I2O_TIMEOUT_MESSAGE_GET
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_FIVE_WORD_MSG_SIZE,4,2         ## @FIVE_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ## @SGL_OFFSET_0
	.comm	_I2O_CMD_BUS_SCAN,4,2           ## @I2O_CMD_BUS_SCAN
	.comm	_HOST_TID,4,2                   ## @HOST_TID
	.no_dead_strip	_i2o_bus_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_bus_scan
_i2o_bus_scan:                          ; @i2o_bus_scan
	.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]
Lloh0:
	adrp	x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2o_msg_get_wait
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x8, _FIVE_WORD_MSG_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIVE_WORD_MSG_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SGL_OFFSET_0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SGL_OFFSET_0@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8]
Lloh12:
	adrp	x8, _I2O_CMD_BUS_SCAN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2O_CMD_BUS_SCAN@GOTPAGEOFF]
Lloh14:
	adrp	x9, _HOST_TID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HOST_TID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	lsl	w9, w9, #12
	orr	w8, w9, w8, lsl #24
	ldr	w9, [x19, #4]
	orr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #8]
	ldr	w0, [x19]
	mov	x1, x20
	mov	w2, #60
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2o_msg_post_wait
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ; @I2O_TIMEOUT_MESSAGE_GET
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_FIVE_WORD_MSG_SIZE,4,2         ; @FIVE_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ; @SGL_OFFSET_0
	.comm	_I2O_CMD_BUS_SCAN,4,2           ; @I2O_CMD_BUS_SCAN
	.comm	_HOST_TID,4,2                   ; @HOST_TID
	.no_dead_strip	_i2o_bus_scan
.subsections_via_symbols
