	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brd_probe
_brd_probe:                             ## @brd_probe
	.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	%rsi, %r14
	movl	%edi, %ebx
	movq	_brd_devices_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_MINORMASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_brd_init_one
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %edi
	callq	_get_disk
	jmp	LBB0_3
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
LBB0_3:
	movq	%rax, %rbx
	movq	_brd_devices_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	$0, (%r14)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_brd_devices_mutex,4,2          ## @brd_devices_mutex
	.comm	_MINORMASK,4,2                  ## @MINORMASK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_brd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brd_probe
_brd_probe:                             ; @brd_probe
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _brd_devices_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _brd_devices_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _MINORMASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MINORMASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_brd_init_one
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x0]
	bl	_get_disk
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
LBB0_3:
	mov	x20, x0
Lloh8:
	adrp	x0, _brd_devices_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _brd_devices_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	str	wzr, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_brd_devices_mutex,4,2          ; @brd_devices_mutex
	.comm	_MINORMASK,4,2                  ; @MINORMASK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_brd_probe
.subsections_via_symbols
