	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_binary                    ## -- Begin function load_binary
	.p2align	4, 0x90
_load_binary:                           ## @load_binary
	.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
	movq	%rdi, %r13
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.1:
	movl	%eax, %r12d
	movl	$-1, %ebx
	leaq	-41(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_read
	incl	%ebx
	testl	%eax, %eax
	jg	LBB0_2
## %bb.3:
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	_close
	cvtsi2ss	%ebx, %xmm0
	movq	_BYTES_PER_LINE@GOTPCREL(%rip), %rax
	cvtsi2ssl	(%rax), %xmm1
	divss	%xmm1, %xmm0
	cvttss2si	%xmm0, %edi
	callq	_ceil
	movl	%eax, %r14d
	movq	_binary@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movl	%eax, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r12
	movq	%rax, 8(%rbx)
	movl	$-1, %eax
	testq	%r12, %r12
	je	LBB0_20
## %bb.4:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.5:
	movq	_MAX_SLICE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_calloc
	movq	%rax, (%r12,%r13,8)
	movq	_binary@GOTPCREL(%rip), %rax
	movq	8(%rax), %r12
	cmpq	$0, (%r12,%r13,8)
	je	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_6
LBB0_8:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	movl	$-1, %eax
	je	LBB0_20
## %bb.9:
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	testl	%r15d, %r15d
	jle	LBB0_18
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	_BYTES_PER_LINE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	_binary@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movq	(%rax,%r13,8), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	leaq	(%rbx,%rax,4), %rdi
	movzbl	-41(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	incl	%r12d
	movq	_BYTES_PER_LINE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$1, %r15d
	jmp	LBB0_11
LBB0_19:
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_18:
	movl	%r14d, %edi
	callq	_close
	xorl	%eax, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_BYTES_PER_LINE,4,2             ## @BYTES_PER_LINE
	.comm	_binary,16,3                    ## @binary
	.comm	_MAX_SLICE_LENGTH,4,2           ## @MAX_SLICE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\\\x%02X"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_binary                    ; -- Begin function load_binary
	.p2align	2
_load_binary:                           ; @load_binary
	.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
	mov	x20, x0
Lloh0:
	adrp	x26, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.1:
	mov	x21, x0
	mov	w22, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #15
	mov	x0, x21
	mov	w2, #1
	bl	_read
	add	w22, w22, #1
	cmp	w0, #0
	b.gt	LBB0_2
; %bb.3:
	mov	x19, x0
	mov	x0, x21
	bl	_close
	scvtf	s0, w22
Lloh2:
	adrp	x24, _BYTES_PER_LINE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BYTES_PER_LINE@GOTPAGEOFF]
	ldr	s1, [x24]
	scvtf	s1, s1
	fdiv	s0, s0, s1
	fcvtzs	w0, s0
	bl	_ceil
	mov	x23, x0
Lloh4:
	adrp	x25, _binary@GOTPAGE
Lloh5:
	ldr	x25, [x25, _binary@GOTPAGEOFF]
	str	w0, [x25]
	mov	w1, #8
	bl	_calloc
	str	x0, [x25, #8]
	cbz	x0, LBB0_17
; %bb.4:
	cmp	w23, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x21, x0
	mov	x27, #0
Lloh6:
	adrp	x8, _MAX_SLICE_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_SLICE_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w22, w8, #1
	mov	w8, w23
	lsl	x23, x8, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_calloc
	str	x0, [x21, x27]
	ldr	x21, [x25, #8]
	ldr	x8, [x21, x27]
	cbz	x8, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #8
	cmp	x23, x27
	b.ne	LBB0_6
LBB0_8:
	ldr	w1, [x26]
	mov	x0, x20
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.9:
	mov	x20, x0
	mov	x22, #0
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x19, x0
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	cmp	w19, #0
	b.le	LBB0_18
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w23, #0
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #15
	mov	x0, x20
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x25, #8]
	ldr	x19, [x8, x22, lsl #3]
	mov	x0, x19
	bl	_strlen
	add	x0, x19, w0, sxtw #2
	ldrb	w2, [sp, #15]
	mov	x1, x21
	bl	_sprintf
	add	w23, w23, #1
	ldr	w8, [x24]
	cmp	w23, w8
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w19, #1
	b	LBB0_11
LBB0_17:
	mov	w0, #-1
	b	LBB0_19
LBB0_18:
	mov	x0, x20
	bl	_close
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_BYTES_PER_LINE,4,2             ; @BYTES_PER_LINE
	.comm	_binary,16,3                    ; @binary
	.comm	_MAX_SLICE_LENGTH,4,2           ; @MAX_SLICE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\\\x%02X"

.subsections_via_symbols
