	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_badioctl                       ## -- Begin function badioctl
	.p2align	4, 0x90
_badioctl:                              ## @badioctl
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	__SC_PAGESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal
LBB0_2:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_ANON@GOTPCREL(%rip), %rax
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$-1, %ebx
	xorl	%edi, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	$-1, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_fatal
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	_fatal
	movl	$-1, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %r13
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	addl	%r14d, %eax
	je	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	leaq	-56(%rbp), %rsi
	movl	$4, %edx
	callq	_read
	movl	-56(%rbp), %eax
	xorl	%edx, %edx
	movq	_DTRACEIOC_MAX@GOTPCREL(%rip), %rcx
	divl	(%rcx)
                                        ## kill: def $edx killed $edx def $rdx
	leal	1(%rdx), %esi
	movq	_DTRACEIOC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%ebx, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_ioctl
	decl	%r14d
	incl	%r12d
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_gethrtime
	movq	%rax, %r15
	subq	%r13, %rax
	movq	_NANOSEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	callq	_kill
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$-1, %ebx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_close
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_read
	jmp	LBB0_16
LBB0_17:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_PAGESIZE,4,2               ## @_SC_PAGESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/random"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"couldn't open /dev/random"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ## @MAP_ANON
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
L_.str.2:                               ## @.str.2
	.asciz	"mmap"

	.comm	_NANOSEC,8,3                    ## @NANOSEC
	.comm	_errno,8,3                      ## @errno
	.comm	_ESRCH,8,3                      ## @ESRCH
L_.str.3:                               ## @.str.3
	.asciz	"/devices/pseudo/dtrace@0:dtrace"

L_.str.4:                               ## @.str.4
	.asciz	"couldn't open DTrace pseudo device"

	.comm	_DTRACEIOC_MAX,4,2              ## @DTRACEIOC_MAX
	.comm	_DTRACEIOC,4,2                  ## @DTRACEIOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_badioctl                       ; -- Begin function badioctl
	.p2align	2
_badioctl:                              ; @badioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
Lloh0:
	adrp	x8, __SC_PAGESIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_PAGESIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_2:
Lloh10:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _MAP_ANON@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MAP_ANON@GOTPAGEOFF]
	orr	w2, w9, w8
Lloh18:
	ldr	w8, [x10]
Lloh19:
	adrp	x9, _MAP_PRIVATE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MAP_PRIVATE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w0, #0
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	mov	x22, x0
	cmn	x0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_4:
	mov	w28, #0
	mov	w25, #0
	mov	x23, #0
	mov	w24, #-1
Lloh24:
	adrp	x20, _NANOSEC@GOTPAGE
Lloh25:
	ldr	x20, [x20, _NANOSEC@GOTPAGEOFF]
Lloh26:
	adrp	x19, _DTRACEIOC_MAX@GOTPAGE
Lloh27:
	ldr	x19, [x19, _DTRACEIOC_MAX@GOTPAGEOFF]
Lloh28:
	adrp	x27, _DTRACEIOC@GOTPAGE
Lloh29:
	ldr	x27, [x27, _DTRACEIOC@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, x26
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w25, w8
	lsr	x8, x8, #38
	mov	w9, #1000
	madd	w8, w8, w9, w28
	cbz	w8, LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	bl	_read
	ldr	w8, [x19]
	ldr	w9, [sp, #12]
	udiv	w10, w9, w8
	msub	w8, w10, w8, w9
	add	w8, w8, #1
	ldr	w9, [x27]
	orr	w1, w9, w8
	mov	x0, x24
	mov	x2, x22
	bl	_ioctl
	sub	w28, w28, #1
	add	w25, w25, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_gethrtime
	ldr	x8, [x20]
	sub	x9, x0, x23
	cmp	x9, x8
	b.le	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x26, x0
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	w1, #0
	bl	_kill
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh30:
	adrp	x8, _errno@GOTPAGE
Lloh31:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
Lloh33:
	adrp	x9, _ESRCH@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ESRCH@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	cmn	w24, #1
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_close
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh36:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_open
	mov	x24, x0
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_fatal
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x22
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_read
	b	LBB0_7
LBB0_16:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_PAGESIZE,4,2               ; @_SC_PAGESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/random"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"couldn't open /dev/random"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ; @MAP_ANON
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
l_.str.2:                               ; @.str.2
	.asciz	"mmap"

	.comm	_NANOSEC,8,3                    ; @NANOSEC
	.comm	_errno,8,3                      ; @errno
	.comm	_ESRCH,8,3                      ; @ESRCH
l_.str.3:                               ; @.str.3
	.asciz	"/devices/pseudo/dtrace@0:dtrace"

l_.str.4:                               ; @.str.4
	.asciz	"couldn't open DTrace pseudo device"

	.comm	_DTRACEIOC_MAX,4,2              ; @DTRACEIOC_MAX
	.comm	_DTRACEIOC,4,2                  ; @DTRACEIOC
.subsections_via_symbols
